cpython/Lib/ctypes/test
Miss Islington (bot) f6fe4bb75c
[3.11] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (GH-100452)
gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576)

The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero.
(cherry picked from commit 84bc6a4f25)

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
2022-12-23 08:56:20 +00:00
..
__init__.py
__main__.py
test_anon.py
test_array_in_pointer.py
test_arrays.py
test_as_parameter.py gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142) 2022-06-24 04:17:21 -07:00
test_bitfields.py bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674) 2022-03-04 00:41:57 +01:00
test_buffers.py
test_bytes.py
test_byteswap.py bpo-33178: Add BigEndianUnion, LittleEndianUnion classes to ctypes (GH-25480) 2022-03-29 14:26:27 -07:00
test_callbacks.py gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142) 2022-06-24 04:17:21 -07:00
test_cast.py
test_cfuncs.py gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142) 2022-06-24 04:17:21 -07:00
test_checkretval.py
test_delattr.py
test_errno.py
test_find.py
test_frombuffer.py
test_funcptr.py
test_functions.py gh-84461: Fix ctypes and test_ctypes on Emscripten (GH-94142) 2022-06-24 04:17:21 -07:00
test_incomplete.py
test_init.py
test_internals.py
test_keeprefs.py
test_libc.py
test_loading.py
test_macholib.py gh-91265: Make old ctypes.macholib tests runned by python -m test (gh-32094) 2022-04-18 09:27:09 +02:00
test_memfunctions.py
test_numbers.py
test_objects.py
test_parameters.py
test_pep3118.py [3.11] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (GH-100452) 2022-12-23 08:56:20 +00:00
test_pickling.py
test_pointers.py
test_prototypes.py
test_python_api.py bpo-46584: remove check for py2.3 from ctypes/test_python_api (GH-31024) 2022-02-01 05:56:25 -08:00
test_random_things.py
test_refcounts.py
test_repr.py
test_returnfuncptrs.py
test_simplesubclasses.py
test_sizes.py
test_slicing.py
test_stringptr.py
test_strings.py bpo-45082: Cleanup ctypes.c_buffer alias (GH-28129) 2021-09-02 19:02:03 +02:00
test_struct_fields.py gh-78878: Fix crash when creating an instance of _ctypes.CField (GH-14837) 2022-12-21 10:02:05 -08:00
test_structures.py gh-92119: ctypes: Print exception class name instead of its representation (GH-98302) 2022-11-07 21:20:06 -08:00
test_unaligned_structures.py
test_unicode.py
test_values.py bpo-46748: Fix ctypes test_frozentable() (GH-31600) 2022-02-27 00:25:46 +01:00
test_varsize_struct.py
test_win32.py
test_wintypes.py