]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Ignore mypy 'attr-defined' error about asyncio.ProactorEventLoop in tests
authorDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 5 Nov 2021 12:10:19 +0000 (13:10 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 10 Nov 2021 01:57:39 +0000 (02:57 +0100)
tests/test_connection_async.py

index c86bc9f0956524b479acf06bd9f0d5f2bec98a2f..7f115ca34ad77efa9d726e0210590bdf44e94d28 100644 (file)
@@ -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(