summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-07-01 16:28:25 (GMT)
committerGitHub <noreply@github.com>2019-07-01 16:28:25 (GMT)
commit8f4ef3b019ce380022018587571b0f970e668de3 (patch)
treed3699d2cae322c515e7a81e516527324fadc2d4d /Lib/test/test_ssl.py
parentf9b7457bd7f438263e0d2dd1f70589ad56a2585e (diff)
downloadcpython-8f4ef3b019ce380022018587571b0f970e668de3.zip
cpython-8f4ef3b019ce380022018587571b0f970e668de3.tar.gz
cpython-8f4ef3b019ce380022018587571b0f970e668de3.tar.bz2
Remove unused imports in tests (GH-14518)
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index d83ee2c..ef17239 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -26,7 +26,7 @@ except ImportError:
ssl = support.import_module("ssl")
-from ssl import TLSVersion, _TLSContentType, _TLSMessageType, _TLSAlertType
+from ssl import TLSVersion, _TLSContentType, _TLSMessageType
Py_DEBUG = hasattr(sys, 'gettotalrefcount')
Py_DEBUG_WIN32 = Py_DEBUG and sys.platform == 'win32'
@@ -4601,7 +4601,6 @@ class TestSSLDebug(unittest.TestCase):
def test_main(verbose=False):
if support.verbose:
- import warnings
plats = {
'Mac': platform.mac_ver,
'Windows': platform.win32_ver,