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 Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_array_in_pointer.py Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
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 Issue #8966: Fix ctypes tests for Windows 2010-07-31 10:52:56 +00:00
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 Fix ctypes tests to avoid implicit bytes-unicode conversion 2010-07-27 23:36:41 +00:00
test_cfuncs.py Fix ctypes tests to avoid implicit bytes-unicode conversion 2010-07-27 23:36:41 +00:00
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 Fix ctypes tests to avoid implicit bytes-unicode conversion 2010-07-27 23:36:41 +00:00
test_find.py Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_frombuffer.py Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_funcptr.py Merged revisions 74664 via svnmerge from 2009-09-04 18:37:03 +00:00
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 Merged revisions 74664 via svnmerge from 2009-09-04 18:37:03 +00:00
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 Fix ctypes tests to avoid implicit bytes-unicode conversion 2010-07-27 23:36:41 +00:00
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 Fix ctypes tests to avoid implicit bytes-unicode conversion 2010-07-27 23:36:41 +00:00
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 Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_pointers.py Merged revisions 74664 via svnmerge from 2009-09-04 18:37:03 +00:00
test_prototypes.py Fix ctypes tests to avoid implicit bytes-unicode conversion 2010-07-27 23:36:41 +00:00
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 Issue #8966: Fix ctypes tests for Windows 2010-07-31 10:52:56 +00:00
test_refcounts.py Issue #10992: make tests pass when run under coverage. 2011-02-22 03:04:06 +00:00
test_repr.py Fix ctypes tests to avoid implicit bytes-unicode conversion 2010-07-27 23:36:41 +00:00
test_returnfuncptrs.py Fix test_from_dll* in test_returnfuncptrs.py. 2013-02-07 14:58:44 +02:00
test_simplesubclasses.py Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_sizes.py Merged revisions 78544 via svnmerge from 2010-03-01 04:59:27 +00:00
test_slicing.py Merged revisions 74664 via svnmerge from 2009-09-04 18:37:03 +00:00
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 Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_structures.py Issue #15989: Fix several occurrences of integer overflow 2013-01-19 12:26:26 +02:00
test_unaligned_structures.py Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_unicode.py Issue #8966: ctypes: Remove implicit bytes-unicode conversion 2010-07-28 00:15:03 +00:00
test_values.py Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
test_varsize_struct.py Merged revisions 73715 via svnmerge from 2009-08-13 08:51:18 +00:00
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