Victor Stinner
044c516854
Issue #18609 , #18408 : _ctypes_add_traceback() now clears the current exception
...
while adding the traceback, because it may call indirectly a Python function
and Python functions must not be called with an exception set.
In the case of the issue #18609 , _ctypes_add_traceback() called the iso8859-1
decoder which is implemented in Python. Python has a ISO-8859-1 codec
implemented in C. It is not used because PyUnicode_Decode() only uses the C
codec for other names (aliases) of this codec ("latin-1", "latin1" and
"iso-8859-1").
2013-08-02 00:47:47 +02:00
Ned Deily
362532bc48
Fix OS X installer build script to handle the pretty-printed _sysconfigdata.py
...
when removing references to temporary build files. This is not an elegant
solution but it does isolate changes to just build-installer.py.
2013-08-01 15:39:47 -07:00
Antoine Pitrou
284e5ce67e
Fix the RLIMIT_CORE resource lowering logic in test_subprocess.
...
We must only lower the soft limit, since lowering the hard limit makes it impossible to raise it back at the end.
(this could prevent core dumps from being generated when the test suite crashes)
2013-08-02 00:08:51 +02:00
Antoine Pitrou
84f31a5676
Issue #10241 : Clear extension module dict copies at interpreter shutdown.
...
Patch by Neil Schemenauer, minimally modified.
2013-08-01 22:07:06 +02:00
Antoine Pitrou
a68cbfa556
Issue #18589 : fix hyperlinking of type slots (tp_*)
2013-08-01 21:14:43 +02:00
Antoine Pitrou
39668f57f4
Issue #18589 : fix hyperlinking of type slots (tp_*)
2013-08-01 21:12:45 +02:00
Antoine Pitrou
932ff83682
Issue #18608 : Avoid keeping a strong reference to the locale module inside the _io module.
2013-08-01 21:04:50 +02:00
Antoine Pitrou
2d350fd8af
Issue #18619 : Fix atexit leaking callbacks registered from sub-interpreters, and make it GC-aware.
2013-08-01 20:56:12 +02:00
Antoine Pitrou
7a2572cb49
test_capi: make a specific test case for the subinterpreter test
...
(it was wrongly classified in the pending calls test case)
2013-08-01 20:43:26 +02:00
Antoine Pitrou
f93c7b8061
Remove Lib/site.py hack to unregister patched builtins.
...
It creates a refleak in subinterpreters, as atexit callbacks aren't triggered at their end.
2013-08-01 19:46:04 +02:00
Antoine Pitrou
4ed328c4d7
Add a test for module weakrefability
2013-08-01 19:20:31 +02:00
Martin v. Löwis
5284f80268
Issue #18569 : The installer now adds .py to the PATHEXT variable
...
when extensions are registered. Patch by Paul Moore.
2013-08-01 18:31:06 +02:00
Martin v. Löwis
85a4847f07
Add UUID for 3.4.
2013-08-01 17:34:42 +02:00
doko@ubuntu.com
0df35b0a57
- Issue #18257 : Fix readlink usage in python-config. Install the python
...
version again on Darwin.
2013-08-01 15:32:49 +02:00
Tim Golden
b2fcebb018
issue9035: Prevent Windows-specific tests from running on non-Windows platforms
2013-08-01 13:58:58 +01:00
Tim Golden
6b528067c5
Issue #9035 : os.path.ismount now recognises volumes mounted below
...
a drive root on Windows. Original patch by Atsuo Ishimoto.
2013-08-01 12:44:00 +01:00
R David Murray
536ffe161c
#17616 : Improve context manager tests, fix bugs in close method and mode docs.
...
'mode' docs fix: the file must always be opened in binary in Python3.
Bug in Wave_write.close: when the close method calls the check that the header
exists and it raises an error, the _file attribute never gets set to None, so
the next close tries to close the file again and we get an ignored traceback
in the __del__ method. The fix is to set _file to None in a finally clause.
This represents a behavior change...in theory a program could be checking for
the error on close and then doing a recovery action on the still open file and
closing it again. But this change will only go into 3.4, so I think that
behavior change is acceptable given that it would be pretty weird and unlikely
logic to begin with.
2013-07-31 20:48:26 -04:00
Christian Heimes
abe639f115
Initialize utime with 0. It fixes a couple of compiler warnung:
...
warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]
2013-08-01 00:12:06 +02:00
Christian Heimes
b3c872403d
Initialize utime with 0. It fixes a couple of compiler warnung:
...
warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]
2013-08-01 00:08:16 +02:00
Christian Heimes
6b6a5abc39
merge
2013-07-31 23:50:03 +02:00
Christian Heimes
294b93d4c6
merge
2013-07-31 23:49:48 +02:00
Christian Heimes
1289565f4b
Silence warning about set but unused variable inside compile_atom() in non-debug builds
2013-07-31 23:48:04 +02:00
Christian Heimes
5e4d372524
Silence warning about set but unused variable inside compile_atom() in non-debug builds
2013-07-31 23:47:56 +02:00
Antoine Pitrou
a4617cdac9
Fix whitespace
2013-07-31 23:15:37 +02:00
Antoine Pitrou
dcedaf6e53
Issue #18214 : Improve finalization of Python modules to avoid setting their globals to None, in most cases.
2013-07-31 23:14:08 +02:00
Antoine Pitrou
c27cd71cd7
Merge
2013-07-31 21:54:18 +02:00
Antoine Pitrou
5c30a75722
Issue #15699 : The readline module now uses PEP 3121-style module initialization, so as to reclaim allocated resources (Python callbacks) at shutdown.
...
Original patch by Robin Schreiber.
2013-07-31 21:52:53 +02:00
R David Murray
c91d5eea10
#17616 : wave.open now supports the 'with' statement.
...
Feature and tests by ClClaudiu.Popa, I added the doc changes.
2013-07-31 13:46:08 -04:00
Christian Heimes
0ce642ebca
yet another WITH_THREADS typo
2013-07-31 13:32:40 +02:00
Christian Heimes
7cd97fcf6e
merge
2013-07-31 11:58:41 +02:00
Christian Heimes
6ffa5ce1f3
Fix _sha3 module to actually release the GIL around its update function.
...
gcov is great.
2013-07-31 11:58:18 +02:00
Terry Jan Reedy
92e2a220ef
Merge with 3.3
2013-07-30 22:31:30 -04:00
Terry Jan Reedy
778cba7f29
Issue #18573 : More copy-paste fixes to assertWarns entry.
2013-07-30 22:31:06 -04:00
Christian Heimes
4efdb4177e
Test Py_IncRef() and Py_DecRef() C functions
2013-07-31 02:36:43 +02:00
Christian Heimes
72f455e96c
Fix use of uninitialized scalar variable, see 3f994367a979
...
CID 1058763
2013-07-31 01:33:50 +02:00
Christian Heimes
49e52f9375
Issue #18481 : Add C coverage reporting with gcov and lcov. A new make target
...
"coverage-report" creates an instrumented Python build, runs unit tests
and creates a HTML. The report can be updated with "make coverage-lcov".
2013-07-31 00:55:18 +02:00
Ned Deily
3b998d1086
Issue #15494 : merge from 3.3
2013-07-30 14:32:52 -07:00
Ned Deily
cdc75d967b
Issue #15494 : Install new test/support directory.
2013-07-30 14:30:15 -07:00
R David Murray
bc47d7bb4f
Merge: #16273 : Fix tutorial discussion of seek/tell (opaque text-mode values).
2013-07-30 15:53:30 -04:00
R David Murray
1c4e443ea2
#16273 : Fix tutorial discussion of seek/tell (opaque text-mode values).
...
Patch by Sijin Joseph.
2013-07-30 15:51:57 -04:00
R David Murray
f392c604e7
Merge: #18601 : fix error made when difflib example was converted to use 'with'.
2013-07-30 15:37:43 -04:00
R David Murray
96433f8e34
#18601 : fix error made when difflib example was converted to use 'with'.
2013-07-30 15:37:11 -04:00
Ethan Furman
9026262507
fixed examples to work with changed attribute names
2013-07-30 12:24:25 -07:00
Antoine Pitrou
32d483c39b
Fix style
2013-07-30 21:01:23 +02:00
R David Murray
20ac14fbad
Merge #18584 : s/testcleanup/testsetup/ until we switch to Sphinx 1.1.
2013-07-30 14:43:10 -04:00
R David Murray
11bfd32881
#18584 : s/testcleanup/testsetup/ until we switch to Sphinx 1.1.
...
testcleanup directive is new as of 1.1, and we are currently running
1.0.7. But using testsetup works just as well, and avoids the
unknown directive error when building the docs.
2013-07-30 14:42:40 -04:00
Antoine Pitrou
8547a0e29b
Merge doc fix
2013-07-30 20:09:36 +02:00
Antoine Pitrou
3ab7b0aabb
Simplify example of PyErr_Fetch() use
2013-07-30 20:09:03 +02:00
Antoine Pitrou
796564c27b
Issue #18112 : PEP 442 implementation (safe object finalization).
2013-07-30 19:59:21 +02:00
Christian Heimes
c5d95b17ac
Add simple test for repr(lock)
2013-07-30 15:54:39 +02:00