]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46198: Fix `test_asyncio.test_sslproto` (GH-31801)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Thu, 10 Mar 2022 21:36:22 +0000 (21:36 +0000)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 21:36:22 +0000 (13:36 -0800)
GH-30297 removed a duplicate `from test import support` statement from `test_asyncio.test_sslproto`. However, in between that PR being filed and it being merged, GH-31275 removed the _other_ `from test import support` statement. This means that `support` is now undefined in `test_asyncio.test_sslproto`, causing the CI to fail on all platforms for all PRS.

Lib/test/test_asyncio/test_sslproto.py

index 4095b4dfa84ebdce3d7527e1325c836e9ebb36bb..52a45f1c7c6e96e3fe5465d02f301ff3e139b15f 100644 (file)
@@ -4,6 +4,7 @@ import logging
 import socket
 import unittest
 import weakref
+from test import support
 from unittest import mock
 try:
     import ssl