From: Denis Laxalde Date: Thu, 28 Oct 2021 07:59:11 +0000 (+0200) Subject: Ignore typing errors in test_no_info_error() tests X-Git-Tag: 3.0.2~6^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f8af0080c7fca05a8f44509502f38bfbc8bffac;p=thirdparty%2Fpsycopg.git Ignore typing errors in test_no_info_error() tests --- diff --git a/tests/types/test_composite.py b/tests/types/test_composite.py index cb1125754..119dfb978 100644 --- a/tests/types/test_composite.py +++ b/tests/types/test_composite.py @@ -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] diff --git a/tests/types/test_hstore.py b/tests/types/test_hstore.py index 0c35dda8d..c465af33f 100644 --- a/tests/types/test_hstore.py +++ b/tests/types/test_hstore.py @@ -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] diff --git a/tests/types/test_range.py b/tests/types/test_range.py index 8e31ded39..f4b934a97 100644 --- a/tests/types/test_range.py +++ b/tests/types/test_range.py @@ -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] diff --git a/tests/types/test_shapely.py b/tests/types/test_shapely.py index f9d4aa50a..0ad2684a8 100644 --- a/tests/types/test_shapely.py +++ b/tests/types/test_shapely.py @@ -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):