cpython/Lib/ctypes/test
Brett Cannon 4c14b5de1c #17115,17116: Have modules initialize the __package__ and __loader__
attributes to None.

The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.

This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
2013-05-04 13:56:58 -04:00
..
__init__.py #17115,17116: Have modules initialize the __package__ and __loader__ 2013-05-04 13:56:58 -04:00
runtests.py
test_anon.py
test_array_in_pointer.py
test_arrays.py Issue #11241: subclasses of ctypes.Array can now be subclassed. 2011-08-30 22:02:51 +02:00
test_as_parameter.py Issue #13380: add an internal function for resetting the ctypes caches 2011-11-25 22:33:32 -06:00
test_bitfields.py Issue #15406: Fix deprecation warning in ctypes test_bitfields.py 2012-07-20 12:48:34 -05:00
test_buffers.py Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to 2011-08-30 21:40:20 +02:00
test_bytes.py
test_byteswap.py carefully cleanup pointer cache after creating struct pointers 2011-07-13 23:09:30 -05:00
test_callbacks.py Remove trailing spaces 2011-09-12 21:17:09 +02:00
test_cast.py
test_cfuncs.py
test_checkretval.py Issue #16719: Get rid of WindowsError. Use OSError instead 2012-12-19 14:33:35 +02:00
test_delattr.py
test_errcheck.py
test_errno.py
test_find.py
test_frombuffer.py
test_funcptr.py
test_functions.py Issue #13380: add an internal function for resetting the ctypes caches 2011-11-25 22:33:32 -06:00
test_incomplete.py
test_init.py #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 11:05:33 +02:00
test_integers.py
test_internals.py Issue #17516: use comment syntax for comments, instead of multiline string 2013-03-26 01:11:54 +01:00
test_keeprefs.py Merged revisions 86596 via svnmerge from 2010-11-21 01:30:29 +00:00
test_libc.py
test_loading.py Revert r88639 (the optimization changes behaviour and breaks buildbots) 2011-02-26 09:37:45 +00:00
test_macholib.py Issue #17516: use comment syntax for comments, instead of multiline string 2013-03-26 01:11:54 +01:00
test_memfunctions.py Issue #10992: make tests pass when run under coverage. 2011-02-22 03:04:06 +00:00
test_numbers.py Issue #9041: raised exception is misleading 2012-05-28 14:21:16 -05:00
test_objects.py
test_parameters.py test_ctypes: Windows is no more a special case 2011-09-28 13:36:20 +02:00
test_pep3118.py - Issue #10181: New memoryview implementation fixes multiple ownership 2012-02-25 12:24:21 +01:00
test_pickling.py
test_pointers.py
test_prototypes.py
test_python_api.py Issue #10992: make tests pass when run under coverage. 2011-02-22 03:04:06 +00:00
test_random_things.py
test_refcounts.py Issue #10992: make tests pass when run under coverage. 2011-02-22 03:04:06 +00:00
test_repr.py
test_returnfuncptrs.py Fix test_from_dll* in test_returnfuncptrs.py. 2013-02-07 14:58:44 +02:00
test_simplesubclasses.py
test_sizes.py
test_slicing.py
test_stringptr.py Issue #10992: make tests pass when run under coverage. 2011-02-22 03:04:06 +00:00
test_strings.py Issue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t 2010-10-02 11:25:35 +00:00
test_struct_fields.py
test_structures.py Issue #15989: Fix several occurrences of integer overflow 2013-01-19 12:26:26 +02:00
test_unaligned_structures.py
test_unicode.py
test_values.py
test_varsize_struct.py
test_win32.py Issue #17041: Fix testing when Python is configured with the 2013-01-27 20:04:26 +02:00
test_wintypes.py #7855: Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland. 2013-05-04 17:46:23 +03:00