From: Denis Laxalde Date: Fri, 5 Nov 2021 10:49:57 +0000 (+0100) Subject: Ignore mypy 'comparison-overlap' error about row_factory in tests X-Git-Tag: 3.0.3~3^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38b3e9ea0ce04b5a6dd04f11b84a99bb65c015a5;p=thirdparty%2Fpsycopg.git Ignore mypy 'comparison-overlap' error about row_factory in tests --- diff --git a/tests/test_connection.py b/tests/test_connection.py index 977361f1d..b0b74f65a 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -465,10 +465,10 @@ def test_execute_binary(conn): def test_row_factory(dsn): conn = Connection.connect(dsn) - assert conn.row_factory is tuple_row + assert conn.row_factory is tuple_row # type: ignore[comparison-overlap] conn = Connection.connect(dsn, row_factory=my_row_factory) - assert conn.row_factory is my_row_factory + assert conn.row_factory is my_row_factory # type: ignore[comparison-overlap] cur = conn.execute("select 'a' as ve") assert cur.fetchone() == ["Ave"] diff --git a/tests/test_connection_async.py b/tests/test_connection_async.py index 568ea39bb..662f7bcd6 100644 --- a/tests/test_connection_async.py +++ b/tests/test_connection_async.py @@ -474,10 +474,10 @@ async def test_execute_binary(aconn): async def test_row_factory(dsn): conn = await AsyncConnection.connect(dsn) - assert conn.row_factory is tuple_row + assert conn.row_factory is tuple_row # type: ignore[comparison-overlap] conn = await AsyncConnection.connect(dsn, row_factory=my_row_factory) - assert conn.row_factory is my_row_factory + assert conn.row_factory is my_row_factory # type: ignore[comparison-overlap] cur = await conn.execute("select 'a' as ve") assert await cur.fetchone() == ["Ave"]