diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-09 14:50:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 12:50:31 +0000 |
commit | 0f885ffa94aa9b69ff556e119cb17deb23a5a4b3 (patch) | |
tree | ad3d71d42e35d15b8d3173d8f52b413e624efe27 /Lib/test | |
parent | 58e4b69f698e6fd0694a58f18679bbe0e7e50e91 (diff) | |
download | cpython-0f885ffa94aa9b69ff556e119cb17deb23a5a4b3.tar.gz cpython-0f885ffa94aa9b69ff556e119cb17deb23a5a4b3.zip |
gh-105407: Remove unused imports (#105554)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test___all__.py | 3 | ||||
-rw-r--r-- | Lib/test/test_capi/test_unicode.py | 2 | ||||
-rw-r--r-- | Lib/test/test_urllib2_localnet.py | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 6b0e2b020d0..2163f163656 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -101,7 +101,8 @@ class AllTest(unittest.TestCase): ]) # In case _socket fails to build, make this test fail more gracefully - # than an AttributeError somewhere deep in CGIHTTPServer. + # than an AttributeError somewhere deep in concurrent.futures, email + # or unittest. import _socket ignored = [] diff --git a/Lib/test/test_capi/test_unicode.py b/Lib/test/test_capi/test_unicode.py index 9c766206568..ca914459a62 100644 --- a/Lib/test/test_capi/test_unicode.py +++ b/Lib/test/test_capi/test_unicode.py @@ -329,7 +329,7 @@ class CAPITest(unittest.TestCase): pythonapi, py_object, sizeof, c_int, c_long, c_longlong, c_ssize_t, c_uint, c_ulong, c_ulonglong, c_size_t, c_void_p, - sizeof, c_wchar, c_wchar_p) + c_wchar, c_wchar_p) name = "PyUnicode_FromFormat" _PyUnicode_FromFormat = getattr(pythonapi, name) _PyUnicode_FromFormat.argtypes = (c_char_p,) diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py index 1c5b027931c..0dcdbac76b5 100644 --- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -11,7 +11,6 @@ import hashlib from test import support from test.support import hashlib_helper from test.support import threading_helper -from test.support import warnings_helper try: import ssl |