From: Denis Laxalde Date: Fri, 5 Nov 2021 12:10:19 +0000 (+0100) Subject: Ignore mypy 'attr-defined' error about asyncio.ProactorEventLoop in tests X-Git-Tag: 3.0.3~3^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90b5be1aab775d78eb4ddb3c3188a2e553396b23;p=thirdparty%2Fpsycopg.git Ignore mypy 'attr-defined' error about asyncio.ProactorEventLoop in tests --- diff --git a/tests/test_connection_async.py b/tests/test_connection_async.py index c86bc9f09..7f115ca34 100644 --- a/tests/test_connection_async.py +++ b/tests/test_connection_async.py @@ -676,7 +676,7 @@ async def test_connect_context_copy(dsn, aconn): @pytest.mark.skipif(sys.platform != "win32", reason="windows only test") def test_windows_error(dsn): - loop = asyncio.ProactorEventLoop() + loop = asyncio.ProactorEventLoop() # type: ignore[attr-defined] async def go(): with pytest.raises(