cpython/Lib/ctypes/test
Eric Snow 074fa57506
bpo-45395: Make custom frozen modules additions instead of replacements. (gh-28778)
Currently custom modules (the array set on PyImport_FrozenModules) replace all the frozen stdlib modules. That can be problematic and is unlikely to be what the user wants. This change treats the custom frozen modules as additions instead. They take precedence over all other frozen modules except for those needed to bootstrap the import system. If the "code" field of an entry in the custom array is NULL then that frozen module is treated as disabled, which allows a custom entry to disable a frozen stdlib module.

This change allows us to get rid of is_essential_frozen_module() and simplifies the logic for which frozen modules should be ignored.

https://bugs.python.org/issue45395
2021-10-28 15:04:33 -06:00
..
__init__.py bpo-40275: Use new test.support helper submodules in tests (GH-21315) 2020-07-06 11:15:08 +02:00
__main__.py
test_anon.py
test_array_in_pointer.py
test_arrays.py Use assertEqual(). (#13883) 2019-06-07 11:18:34 +02:00
test_as_parameter.py
test_bitfields.py bpo-29753: revert 0d7ad9f (GH-19850) (GH-27085) 2021-07-11 17:43:50 +01: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
test_byteswap.py
test_callbacks.py bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) 2020-05-28 00:38:12 +02:00
test_cast.py
test_cfuncs.py
test_checkretval.py
test_delattr.py
test_errno.py
test_find.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) 2021-04-04 09:01:23 +09:00
test_frombuffer.py
test_funcptr.py
test_functions.py bpo-19113: Remove unused test_errors from ctypes tests (GH-28008) 2021-09-08 17:28:32 +02:00
test_incomplete.py
test_init.py
test_internals.py
test_keeprefs.py
test_libc.py
test_loading.py Update URLs in comments and metadata to use HTTPS (GH-27458) 2021-07-30 15:54:46 +02:00
test_macholib.py bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) 2020-11-08 10:05:27 +01:00
test_memfunctions.py
test_numbers.py bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) 2020-05-26 18:43:38 +03:00
test_objects.py
test_parameters.py closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305) 2021-01-23 10:34:01 -06:00
test_pep3118.py
test_pickling.py
test_pointers.py
test_prototypes.py
test_python_api.py
test_random_things.py bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) 2020-05-28 00:38:12 +02:00
test_refcounts.py
test_repr.py
test_returnfuncptrs.py
test_simplesubclasses.py
test_sizes.py
test_slicing.py
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-45082: Cleanup ctypes.c_buffer alias (GH-28129) 2021-09-02 19:02:03 +02:00
test_struct_fields.py bpo-39593: Add test on ctypes cfield.c s_set() (GH-18424) 2020-06-01 18:54:18 +02:00
test_structures.py Fix typos in the Lib directory (GH-28775) 2021-10-06 16:13:48 -07:00
test_unaligned_structures.py bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) 2020-05-28 00:38:12 +02:00
test_unicode.py bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (#8721) 2021-05-02 12:40:01 +02:00
test_values.py bpo-45395: Make custom frozen modules additions instead of replacements. (gh-28778) 2021-10-28 15:04:33 -06:00
test_varsize_struct.py
test_win32.py
test_wintypes.py bpo-16396: Allow wintypes to be imported on non-Windows systems. (GH-21394) 2020-10-19 23:06:05 +01:00