From cd16d9ce5dd78edc3b625d683375b0b8b7c713a6 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 3 Jul 2022 02:07:29 +0100 Subject: [PATCH] test: drop ipaddress lazy load test The module is now used by psycopg. --- tests/types/test_net.py | 23 ----------------------- 1 file changed, 23 deletions(-) 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]) -- 2.47.2