From: Daniele Varrazzo Date: Sun, 3 Jul 2022 01:07:29 +0000 (+0100) Subject: test: drop ipaddress lazy load test X-Git-Tag: 3.1~54^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd16d9ce5dd78edc3b625d683375b0b8b7c713a6;p=thirdparty%2Fpsycopg.git test: drop ipaddress lazy load test The module is now used by psycopg. --- diff --git a/tests/types/test_net.py b/tests/types/test_net.py index 41104e99f..c1b29d7f9 100644 --- a/tests/types/test_net.py +++ b/tests/types/test_net.py @@ -1,6 +1,4 @@ -import sys import ipaddress -import subprocess as sp import pytest @@ -128,24 +126,3 @@ def test_cidr_load(conn, fmt_out, val): (got,) = copy.read_row() assert got == pyval - - -@pytest.mark.slow -@pytest.mark.subprocess -def test_lazy_load(dsn): - script = f"""\ -import sys -import psycopg - -assert 'ipaddress' not in sys.modules - -conn = psycopg.connect({dsn!r}) -with conn.cursor() as cur: - cur.execute("select '127.0.0.1'::inet") - cur.fetchone() - -conn.close() -assert 'ipaddress' in sys.modules -""" - - sp.check_call([sys.executable, "-s", "-c", script])