cpython/Lib/ctypes/test
Miss Islington (bot) 9e3c583954
bpo-40795: ctypes calls unraisablehook with an exception (GH-20452)
If ctypes fails to convert the result of a callback or if a ctypes
callback function raises an exception, sys.unraisablehook is now
called with an exception set. Previously, the error was logged into
stderr by PyErr_Print().
(cherry picked from commit 10228bad04)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-05-27 16:00:01 -07:00
..
__init__.py Issue #22060: Clean up/simplify test_ctypes, use test discovery 2014-08-08 13:32:16 -05:00
__main__.py Issue #22060: Clean up/simplify test_ctypes, use test discovery 2014-08-08 13:32:16 -05:00
test_anon.py bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined only outside _fields_. (#3615) 2017-09-17 13:45:38 +03:00
test_array_in_pointer.py
test_arrays.py Use assertEqual(). (#13883) 2019-06-07 11:18:34 +02:00
test_as_parameter.py Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191) 2018-07-09 18:25:55 +03:00
test_bitfields.py bpo-27643 - skip test_ctypes test case with XLC compiler. (GH-5164) 2018-12-26 13:54:22 +10:00
test_buffers.py bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows (GH-14081) 2019-06-14 17:53:59 +02:00
test_bytes.py bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii character. (GH-10863) 2018-12-06 11:16:24 +02:00
test_byteswap.py Issue #22098: ctypes' BigEndianStructure and LittleEndianStructure now define an empty __slots__ so that subclasses don't always get an instance dict. 2014-08-30 00:37:18 +02:00
test_callbacks.py bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) 2020-05-27 16:00:01 -07:00
test_cast.py bpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type (GH-3859) 2018-05-09 14:38:56 -07:00
test_cfuncs.py
test_checkretval.py
test_delattr.py
test_errno.py bpo-31370: Remove support for threads-less builds (#3385) 2017-09-07 18:56:24 +02:00
test_find.py Merge test cleanup from 3.5 into 3.6 2016-09-29 04:40:56 +00:00
test_frombuffer.py bpo-28129: fix ctypes crashes (#386) 2017-03-02 18:42:40 +01:00
test_funcptr.py bpo-28129: fix ctypes crashes (#386) 2017-03-02 18:42:40 +01:00
test_functions.py
test_incomplete.py
test_init.py
test_internals.py
test_keeprefs.py
test_libc.py
test_loading.py bpo-40443: Remove unused imports in the stdlib (GH-19803) 2020-04-30 11:26:33 +02:00
test_macholib.py
test_memfunctions.py
test_numbers.py bpo-36048: Use __index__() instead of __int__() for implicit conversion if available. (GH-11952) 2019-02-25 17:57:58 +02:00
test_objects.py Issue #23277: Remove unused sys and os imports 2016-04-24 07:31:42 +03:00
test_parameters.py bpo-31311: Fix a SystemError and a crash in ctypes._CData.__setstate__(), in case of a bad __dict__. (#3254) 2017-09-25 11:09:11 +03:00
test_pep3118.py bpo-32297: Few misspellings found in Python source code comments. (#4803) 2017-12-14 13:04:53 +02:00
test_pickling.py Issue #22777: Test pickling with all protocols. 2014-12-15 14:03:42 +02:00
test_pointers.py bpo-28129: fix ctypes crashes (#386) 2017-03-02 18:42:40 +01:00
test_prototypes.py #22732 ctypes tests don't set correct restype for intptr_t functions 2014-11-01 15:14:27 -07:00
test_python_api.py Issue #22060: Clean up/simplify test_ctypes, use test discovery 2014-08-08 13:32:16 -05:00
test_random_things.py bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) 2020-05-27 16:00:01 -07:00
test_refcounts.py
test_repr.py
test_returnfuncptrs.py Issue #23277: Remove unused sys and os imports 2016-04-24 07:31:42 +03:00
test_simplesubclasses.py
test_sizes.py Issue #23277: Remove unused sys and os imports 2016-04-24 07:31:42 +03:00
test_slicing.py bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285) 2017-06-27 16:03:14 +03:00
test_stringptr.py bpo-36253: Remove use after free reference in ctypes test suite (GH-12257) 2019-09-10 08:20:15 -07:00
test_strings.py bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) 2018-12-17 16:52:45 +02:00
test_struct_fields.py bpo-28129: fix ctypes crashes (#386) 2017-03-02 18:42:40 +01:00
test_structures.py bpo-16575: Disabled checks for union types being passed by value. (GH-17960) 2020-01-12 08:54:00 +00:00
test_unaligned_structures.py bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) 2020-05-27 16:00:01 -07:00
test_unicode.py
test_values.py bpo-36540: PEP 570 -- Implementation (GH-12701) 2019-04-29 13:36:57 +01:00
test_varsize_struct.py
test_win32.py bpo-35947: Update Windows to the current version of libffi (GH-11797) 2019-03-29 16:30:10 -07:00
test_wintypes.py