]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105751: Cleanup test_ctypes imports (#105803)
authorVictor Stinner <vstinner@python.org>
Wed, 14 Jun 2023 23:31:45 +0000 (01:31 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 23:31:45 +0000 (23:31 +0000)
commit698a0da7d440856a90b45964e9082b5a55387b80
treed3d5b3d3fe5a07cfe3aadf0772b6b5aed6b7d009
parentd1b0297d3e1cb4f9f53070e6c0a5fd6722bdf6ee
gh-105751: Cleanup test_ctypes imports (#105803)

* Move imports at top level and sort imports.
* Replace c_buffer() with create_string_buffer(): c_buffer is a
  deprecated alias.
* PEP 8: Add empty lines for readability between imports and classes.
45 files changed:
Lib/test/test_ctypes/test_anon.py
Lib/test/test_ctypes/test_array_in_pointer.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_errno.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_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_macholib.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_parameters.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_refcounts.py
Lib/test/test_ctypes/test_repr.py
Lib/test/test_ctypes/test_returnfuncptrs.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_unicode.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