summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
Commit message (Collapse)AuthorAgeFilesLines
* Closes #23256: Avoid a crash in test_ctypesZachary Ware2015-01-171-1/+1
| | | | | Only happened with oddly capitalized debug executables on Windows. Patch by Claudiu Popa.
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-11/+9
|
* Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows ↵Steve Dower2014-11-051-3/+23
| | | | (large structs) Patch by mattip
* #13096: Fix segfault in CTypes POINTER handling of large values.R David Murray2014-10-121-0/+8
| | | | Patch by Meador Inge.
* Issue #22161: Conformed arguments type checks in ctype to actually supportedSerhiy Storchaka2014-08-094-3/+22
| | | | types. Corrected error messages about bytes arguments.
* Issue #22060: Clean up/simplify test_ctypes, use test discoveryZachary Ware2014-08-087-291/+70
|
* Issue #19493: Fix two uses of ctypes.test.requires (it's not a decorator)Zachary Ware2014-07-232-2/+5
| | | | | and skip test_win32.FunctionCallTestCase.test_SEH when Python was compiled in debug configuration or by a non-MSC compiler.
* Issue #21829: Fix running test_ctypes on Windows with -O or -OOZachary Ware2014-06-261-12/+3
|
* Issue #19493: Refactor ctypes test package.Zachary Ware2014-06-1332-746/+717
| | | | | | | | | Skipped tests are now marked as skipped, formerly commented-out or renamed-so-it-doesn't-look-like-a-test tests are uncommented, properly named, and unconditionally skipped, some tests that simply didn't run before are now able to run, and a few are split into multiple methods instead of skipping via 'return' in the middle of a method. Also, a couple of unused files are removed completely.
* support pep 3118 format strings for ctypes objects with nontrivial shapes ↵Benjamin Peterson2014-05-171-4/+10
| | | | | | (closes #10744) Patch by Matti Picus.
* Issue #21093: Prevent failures of ctypes test_macholib on OS X if aNed Deily2014-03-291-2/+5
| | | | copy of libz exists in $HOME/lib or /usr/local/lib.
* Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-201-1/+1
|
* merge 3.3 (#20946)Benjamin Peterson2014-03-162-9/+9
|\
| * fix ctypes test alignment assumptions (closes #20946)Benjamin Peterson2014-03-162-9/+9
| | | | | | | | Patch by Andreas Schwab.
* | Issue #19734: ctypes resource management fixesNick Coghlan2013-11-241-6/+9
| |
* | Issue #19591: Use specific asserts in ctype tests.Serhiy Storchaka2013-11-1616-85/+84
|\ \ | |/
| * Issue #19591: Use specific asserts in ctype tests.Serhiy Storchaka2013-11-1616-85/+84
| |
* | #18981: merge with 3.3.Ezio Melotti2013-09-131-1/+1
|\ \ | |/
| * #18981: fix a typo in a comment (noticed by Anoop Thomas Mathew).Ezio Melotti2013-09-131-1/+1
| |
* | Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
|\ \ | |/ | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
| | | | | | | | error messages and comments.
* | #18741: merge with 3.3.Ezio Melotti2013-08-175-7/+7
|\ \ | |/
| * #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-175-7/+7
| |
* | - Issue #17754: Make ctypes.util.find_library() independent of the locale.doko@ubuntu.com2013-05-151-1/+1
|\ \ | |/
| * - Issue #17754: Make ctypes.util.find_library() independent of the locale.doko@ubuntu.com2013-05-151-1/+1
| |
* | #17115,17116: Have modules initialize the __package__ and __loader__Brett Cannon2013-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | #7855: merge with 3.3.Ezio Melotti2013-05-042-1/+44
|\ \ | |/
| * #7855: Add tests for ctypes/winreg for issues found in IronPython. Initial ↵Ezio Melotti2013-05-042-1/+44
| | | | | | | | patch by Dino Viehland.
* | Issue #17516: use comment syntax for comments, instead of multiline stringVictor Stinner2013-03-263-51/+44
| |
* | modernize some modules' code by replacing ↵Giampaolo Rodola'2013-02-121-3/+2
| | | | | | | | OSError->ENOENT/ENOTDIR/EPERM/EEXIST occurrences with the corresponding pep-3151 exceptions (FileNotFoundError, NotADirectoryError, etc.)
* | Fix test_from_dll* in test_returnfuncptrs.py.Serhiy Storchaka2013-02-071-5/+4
|\ \ | |/
| * Fix test_from_dll* in test_returnfuncptrs.py.Serhiy Storchaka2013-02-071-5/+4
| |\
| | * Fix test_from_dll* in test_returnfuncptrs.py.Serhiy Storchaka2013-02-071-5/+4
| | |
* | | Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.Serhiy Storchaka2013-02-041-1/+4
|\ \ \ | |/ /
| * | Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.Serhiy Storchaka2013-02-041-1/+4
| |\ \ | | |/
| | * Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.Serhiy Storchaka2013-02-041-1/+4
| | |
* | | Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTupleSerhiy Storchaka2013-02-041-0/+28
|\ \ \ | |/ / | | | | | | parses nested mutating sequence.
| * | Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTupleSerhiy Storchaka2013-02-041-0/+28
| |\ \ | | |/ | | | | | | parses nested mutating sequence.
| | * Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTupleSerhiy Storchaka2013-02-041-0/+28
| | | | | | | | | | | | parses nested mutating sequence.
* | | merge 3.3 (#5289)Benjamin Peterson2013-02-041-0/+29
|\ \ \ | |/ /
| * | fix find_library on Solaris (closes #5289)Benjamin Peterson2013-02-041-0/+29
| | |
* | | Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-1/+4
|\ \ \ | |/ / | | | | | | --without-doc-strings.
| * | Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-1/+4
| |\ \ | | |/ | | | | | | --without-doc-strings.
| | * Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-1/+4
| | | | | | | | | | | | --without-doc-strings.
| * | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-0/+9
| |\ \ | | |/ | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
| | * Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-0/+9
| | | | | | | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* | | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-141-0/+9
| | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks.
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-193-5/+5
|/ / | | | | | | Patch by Serhiy Storchaka.
* | Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerrorRichard Oudkerk2012-10-092-1/+23
| |
* | Issue #15406: Fix deprecation warning in ctypes test_bitfields.pyMeador Inge2012-07-201-4/+4
|\ \ | |/ | | | | Patch by Flávio Ribeiro.