Vinay Sajip
0b588869ee
Issue #20160 : Merged fix from 3.4.
2016-08-05 21:44:15 +01:00
Vinay Sajip
a0b2568627
Issue #20160 : Merged fix from 3.3.
2016-08-05 21:43:25 +01:00
Vinay Sajip
6f25003291
Issue #20160 : Handled passing of large structs to callbacks correctly.
2016-08-05 21:24:27 +01:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Serhiy Storchaka
886a5f352f
Issue #27343 : Fixed error message for conflicting initializers of ctypes.Structure.
2016-06-18 09:58:24 +03:00
Martin Panter
e1b3431cef
Issue #22636 : Handle OSError from subprocess, e.g. if command not found
2016-06-14 04:08:30 +00:00
Martin Panter
bfb15ab711
Issue #22636 : avoid using a shell in the ctypes.util module
...
Replace os.popen() with subprocess.Popen. Based on patch by Victor Stinner.
If the "gcc", "cc" or "objdump" command is not available, the code was
supposed to raise an OSError exception. But there was a bug in the code. The
shell code returns the exit code 10 if the required command is missing, and the
code tries to check for the status 10. The problem is that os.popen() doesn't
return the exit code directly, but a status which should be processed by
os.WIFEXITED() and os.WEXITSTATUS(). In practice, the exception was never
raised. The OSError exception was not documented and ctypes.util.find_library()
is expected to return None if the library is not found.
2016-06-14 01:27:11 +00:00
Martin Panter
a90a4a9651
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Martin Panter
f47a400347
Issue #25533 : Update documentation regarding the frozen modules table
...
* "ctypes" documentation was using Python 2 bytes-str equivalence.
* PyImport_FrozenModules is a pointer to const as of Python 3.4
2016-05-15 00:13:04 +00:00
Meador Inge
8988ebf2a7
Issue #24114 : Fix an uninitialized variable in `ctypes.util`.
...
The bug only occurs on SunOS when the ctypes implementation searches
for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by
Kees Bos.
2016-04-30 21:56:59 -05:00
Martin Panter
92072ac8b4
Issue #25622 : Rename to PythonValuesTestCase and enable for non-Windows
2015-11-26 02:36:26 +00:00
Martin Panter
1bb651540e
Issue #25498 : Fix GC crash due to ctypes objects wrapping a memoryview
...
This was a regression caused by revision 1da9630e9b7f. Based on patch by
Eryksun.
2015-11-13 21:43:39 +00:00
Serhiy Storchaka
b63902a748
Issue #25582 : Fixed 100 MB memory leak in test_ctypes.
2015-11-09 22:31:10 +02:00
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
2015-11-02 14:10:23 +02:00
Victor Stinner
9c631a0f71
Issue #23319 : Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
...
written by Matthieu Gautier.
2015-07-29 14:33:52 +02:00
Zachary Ware
4c9c848159
Issue #17202 : Add .bat to .hgeol to force them to CRLF.
...
Using LF can a script to fail if it tries to use a label that is
split across 512 byte blocks. Who knows why.
2015-04-13 11:59:54 -05:00
Serhiy Storchaka
9db55004a1
Make some tests more frienly to MemoryError.
...
Free memory, unlock hanging threads.
2015-03-28 20:38:37 +02:00
Serhiy Storchaka
4fdb68491e
Issue #22896 : Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
...
and PyObject_AsWriteBuffer().
2015-02-03 01:21:08 +02:00
Zachary Ware
465b057f91
Closes #23256 : Avoid a crash in test_ctypes
...
Only happened with oddly capitalized debug executables on Windows.
Patch by Claudiu Popa.
2015-01-17 08:50:42 -06:00
Serhiy Storchaka
bad1257c96
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:03:42 +02:00
Steve Dower
b7fa201113
Issue #20160 : broken ctypes calling convention on MSVC / 64-bit Windows (large structs) Patch by mattip
2014-11-04 21:21:22 -08:00
R David Murray
817905b239
#13096 : Fix segfault in CTypes POINTER handling of large values.
...
Patch by Meador Inge.
2014-10-12 13:54:48 -04:00
Serhiy Storchaka
4f06d604c4
Issue #22161 : Conformed arguments type checks in ctype to actually supported
...
types. Corrected error messages about bytes arguments.
2014-08-09 09:33:05 +03:00
Zachary Ware
5a794c16d9
Issue #22060 : Clean up/simplify test_ctypes, use test discovery
2014-08-08 13:32:16 -05:00
Zachary Ware
88b2b45154
Issue #19493 : Fix two uses of ctypes.test.requires (it's not a decorator)
...
and skip test_win32.FunctionCallTestCase.test_SEH when Python was compiled
in debug configuration or by a non-MSC compiler.
2014-07-23 14:39:50 -05:00
Zachary Ware
7180c793c4
Issue #21829 : Fix running test_ctypes on Windows with -O or -OO
2014-06-26 15:20:44 -05:00
Zachary Ware
9422df0924
Issue #19493 : Refactor ctypes test package.
...
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.
2014-06-13 13:44:39 -05:00
Benjamin Peterson
5eb6b39210
support pep 3118 format strings for ctypes objects with nontrivial shapes ( closes #10744 )
...
Patch by Matti Picus.
2014-05-17 14:59:12 -07:00
Ned Deily
c420343c0c
Issue #21093 : Prevent failures of ctypes test_macholib on OS X if a
...
copy of libz exists in $HOME/lib or /usr/local/lib.
2014-03-29 00:08:44 -07:00
Victor Stinner
7fa767e517
Issue #20976 : pyflakes: Remove unused imports
2014-03-20 09:16:38 +01:00
Benjamin Peterson
fca286601b
merge 3.3 ( #20946 )
2014-03-16 11:30:54 -05:00
Benjamin Peterson
fda33559dc
fix ctypes test alignment assumptions ( closes #20946 )
...
Patch by Andreas Schwab.
2014-03-16 10:07:26 +01:00
Nick Coghlan
1889623e1a
Issue #19734 : ctypes resource management fixes
2013-11-24 12:53:50 +10:00
Serhiy Storchaka
8f203dda0c
Issue #19591 : Use specific asserts in ctype tests.
2013-11-16 23:53:39 +02:00
Serhiy Storchaka
7c5e24f948
Issue #19591 : Use specific asserts in ctype tests.
2013-11-16 23:51:26 +02:00
Ezio Melotti
87456e53a8
#18981 : merge with 3.3.
2013-09-13 23:54:41 +03:00
Ezio Melotti
e7f4c1c045
#18981 : fix a typo in a comment (noticed by Anoop Thomas Mathew).
2013-09-13 23:52:12 +03:00
Serhiy Storchaka
46e1ce214b
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Ezio Melotti
e0c69161bc
#18741 : merge with 3.3.
2013-08-17 16:13:22 +03:00
Ezio Melotti
b5bc353b88
#18741 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:11:40 +03:00
doko@ubuntu.com
bcaddf6382
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:04:50 +02:00
doko@ubuntu.com
ef535584a9
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:02:13 +02:00
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
Ezio Melotti
4e59af7abd
#7855 : merge with 3.3.
2013-05-04 17:47:54 +03:00
Ezio Melotti
28faf03d44
#7855 : Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland.
2013-05-04 17:46:23 +03:00
Victor Stinner
765531d2d0
Issue #17516 : use comment syntax for comments, instead of multiline string
2013-03-26 01:11:54 +01:00
Giampaolo Rodola'
0166a283f6
modernize some modules' code by replacing OSError->ENOENT/ENOTDIR/EPERM/EEXIST occurrences with the corresponding pep-3151 exceptions (FileNotFoundError, NotADirectoryError, etc.)
2013-02-12 15:14:17 +01:00
Serhiy Storchaka
73cfd79533
Fix test_from_dll* in test_returnfuncptrs.py.
2013-02-07 15:00:02 +02:00
Serhiy Storchaka
f5d245a0a0
Fix test_from_dll* in test_returnfuncptrs.py.
2013-02-07 14:59:25 +02:00