From: Denis Laxalde Date: Tue, 2 Nov 2021 09:26:33 +0000 (+0100) Subject: Let mypy ignore an expected type error in pq tests X-Git-Tag: 3.0.2~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32130b4db3e9000459d29e19f51ae42b58b545cb;p=thirdparty%2Fpsycopg.git Let mypy ignore an expected type error in pq tests --- diff --git a/tests/pq/test_misc.py b/tests/pq/test_misc.py index c92160a45..ec65bb3ff 100644 --- a/tests/pq/test_misc.py +++ b/tests/pq/test_misc.py @@ -14,7 +14,7 @@ def test_error_message(pgconn): assert primary.decode("ascii") in msg with pytest.raises(TypeError): - pq.error_message(None) + pq.error_message(None) # type: ignore[arg-type] res.clear() assert pq.error_message(res) == "no details available"