diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-24 18:41:02 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-24 18:41:02 (GMT) |
commit | e437a10d15ddfd21d406e591acccf12ff443194e (patch) | |
tree | f6227687646fda64f9eaf485ae2d9c3f55709232 /Lib/ctypes/test | |
parent | 597d15afe45ea3a8613d336e68a0a98b8846e603 (diff) | |
download | cpython-e437a10d15ddfd21d406e591acccf12ff443194e.zip cpython-e437a10d15ddfd21d406e591acccf12ff443194e.tar.gz cpython-e437a10d15ddfd21d406e591acccf12ff443194e.tar.bz2 |
Issue #23277: Remove unused imports in tests.
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r-- | Lib/ctypes/test/test_parameters.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ctypes/test/test_parameters.py b/Lib/ctypes/test/test_parameters.py index 5c8d703..363f586 100644 --- a/Lib/ctypes/test/test_parameters.py +++ b/Lib/ctypes/test/test_parameters.py @@ -49,7 +49,7 @@ class SimpleTypesTestCase(unittest.TestCase): # XXX Replace by c_char_p tests def test_cstrings(self): - from ctypes import c_char_p, byref + from ctypes import c_char_p # c_char_p.from_param on a Python String packs the string # into a cparam object @@ -68,7 +68,7 @@ class SimpleTypesTestCase(unittest.TestCase): @need_symbol('c_wchar_p') def test_cw_strings(self): - from ctypes import byref, c_wchar_p + from ctypes import c_wchar_p c_wchar_p.from_param("123") @@ -98,7 +98,7 @@ class SimpleTypesTestCase(unittest.TestCase): def test_byref_pointer(self): # The from_param class method of POINTER(typ) classes accepts what is # returned by byref(obj), it type(obj) == typ - from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref + from ctypes import c_short, c_uint, c_int, c_long, POINTER, byref LPINT = POINTER(c_int) LPINT.from_param(byref(c_int(42))) |