]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105751: test_ctypes avoids "from ctypes import *" (#105768)
authorVictor Stinner <vstinner@python.org>
Wed, 14 Jun 2023 03:34:11 +0000 (05:34 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 03:34:11 +0000 (03:34 +0000)
commitb95de96268b334f9ec0aa70bd038f3603bf19421
treee4f0a828f182ac52f438e59385865111a0799447
parent381a1dc26162e9fcbec48ac2eee5ac8adb806b07
gh-105751: test_ctypes avoids "from ctypes import *" (#105768)

Using "import *" prevents linters like pyflakes to detect undefined names
(usually missing imports).

Replace c_voidp with c_void_p.
48 files changed:
Lib/ctypes/_endian.py
Lib/test/test_ctypes/test_anon.py
Lib/test/test_ctypes/test_array_in_pointer.py
Lib/test/test_ctypes/test_arrays.py
Lib/test/test_ctypes/test_as_parameter.py
Lib/test/test_ctypes/test_bitfields.py
Lib/test/test_ctypes/test_buffers.py
Lib/test/test_ctypes/test_bytes.py
Lib/test/test_ctypes/test_byteswap.py
Lib/test/test_ctypes/test_callbacks.py
Lib/test/test_ctypes/test_cast.py
Lib/test/test_ctypes/test_cfuncs.py
Lib/test/test_ctypes/test_checkretval.py
Lib/test/test_ctypes/test_delattr.py
Lib/test/test_ctypes/test_errno.py
Lib/test/test_ctypes/test_find.py
Lib/test/test_ctypes/test_frombuffer.py
Lib/test/test_ctypes/test_funcptr.py
Lib/test/test_ctypes/test_functions.py
Lib/test/test_ctypes/test_incomplete.py
Lib/test/test_ctypes/test_init.py
Lib/test/test_ctypes/test_internals.py
Lib/test/test_ctypes/test_keeprefs.py
Lib/test/test_ctypes/test_libc.py
Lib/test/test_ctypes/test_loading.py
Lib/test/test_ctypes/test_memfunctions.py
Lib/test/test_ctypes/test_numbers.py
Lib/test/test_ctypes/test_objects.py
Lib/test/test_ctypes/test_pep3118.py
Lib/test/test_ctypes/test_pickling.py
Lib/test/test_ctypes/test_pointers.py
Lib/test/test_ctypes/test_prototypes.py
Lib/test/test_ctypes/test_python_api.py
Lib/test/test_ctypes/test_random_things.py
Lib/test/test_ctypes/test_repr.py
Lib/test/test_ctypes/test_returnfuncptrs.py
Lib/test/test_ctypes/test_simplesubclasses.py
Lib/test/test_ctypes/test_sizes.py
Lib/test/test_ctypes/test_slicing.py
Lib/test/test_ctypes/test_stringptr.py
Lib/test/test_ctypes/test_strings.py
Lib/test/test_ctypes/test_struct_fields.py
Lib/test/test_ctypes/test_structures.py
Lib/test/test_ctypes/test_unaligned_structures.py
Lib/test/test_ctypes/test_values.py
Lib/test/test_ctypes/test_varsize_struct.py
Lib/test/test_ctypes/test_win32.py
Lib/test/test_ctypes/test_wintypes.py