[Python-checkins] bpo-46198: Fix `test_asyncio.test_sslproto` (GH-31801)
JelleZijlstra
webhook-mailer at python.org
Thu Mar 10 16:36:36 EST 2022
https://github.com/python/cpython/commit/4052dd2296da2ff304b1fa787b100befffa1c9ca
commit: 4052dd2296da2ff304b1fa787b100befffa1c9ca
branch: main
author: Alex Waygood <Alex.Waygood at Gmail.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-03-10T13:36:22-08:00
summary:
bpo-46198: Fix `test_asyncio.test_sslproto` (GH-31801)
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.
files:
M Lib/test/test_asyncio/test_sslproto.py
diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py
index 4095b4dfa84eb..52a45f1c7c6e9 100644
--- a/Lib/test/test_asyncio/test_sslproto.py
+++ b/Lib/test/test_asyncio/test_sslproto.py
@@ -4,6 +4,7 @@
import socket
import unittest
import weakref
+from test import support
from unittest import mock
try:
import ssl
More information about the Python-checkins
mailing list