]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Ignore typing errors in test_no_info_error() tests
authorDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 28 Oct 2021 07:59:11 +0000 (09:59 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Tue, 2 Nov 2021 08:10:56 +0000 (09:10 +0100)
tests/types/test_composite.py
tests/types/test_hstore.py
tests/types/test_range.py
tests/types/test_shapely.py

index cb1125754dd2b2e45545ead0711e9b3e321a4be7..119dfb978efe80d10e3aef661c4e9a18acd1021c 100644 (file)
@@ -331,4 +331,4 @@ def test_callable_dumper_not_registered(conn, testcomp):
 
 def test_no_info_error(conn):
     with pytest.raises(TypeError, match="composite"):
-        register_composite(None, conn)
+        register_composite(None, conn)  # type: ignore[arg-type]
index 0c35dda8d4ed729fc14dffa758b2105395e2a3d5..c465af33f2da38ea64cff5237e61809623eaa918 100644 (file)
@@ -101,4 +101,4 @@ def test_roundtrip_array(hstore, conn):
 
 def test_no_info_error(conn):
     with pytest.raises(TypeError, match="hstore.*extension"):
-        register_hstore(None, conn)
+        register_hstore(None, conn)  # type: ignore[arg-type]
index 8e31ded3998ed5640ecfb6b9955472874eabe7fc..f4b934a9743ba4d4bceba09d6b7158f02712f079 100644 (file)
@@ -665,4 +665,4 @@ class TestRangeObject:
 
 def test_no_info_error(conn):
     with pytest.raises(TypeError, match="range"):
-        register_range(None, conn)
+        register_range(None, conn)  # type: ignore[arg-type]
index f9d4aa50a0143f3003caeda62201b2998169f3b6..0ad2684a86694b2b8d9748bc89acd1e18566d65b 100644 (file)
@@ -81,7 +81,7 @@ def test_no_info_error(conn):
     from psycopg.types.shapely import register_shapely
 
     with pytest.raises(TypeError, match="postgis.*extension"):
-        register_shapely(None, conn)
+        register_shapely(None, conn)  # type: ignore[arg-type]
 
 
 def test_with_adapter(shapely_conn):