Commit graph

17874 commits

Author SHA1 Message Date
Jesus Cea
88f7841be7 Correctly merging #9319 into 3.3? 2011-04-25 03:46:43 +02:00
Victor Stinner
c2824d41c3 Issue #11915: threading.RLock()._release_save() raises a RuntimeError if the
lock was not acquired.
2011-04-24 23:41:33 +02:00
Raymond Hettinger
a82aa55b5e Minor clean-ups to docstrings, comments, and var names. 2011-04-24 14:34:26 -07:00
Raymond Hettinger
5db3e0167d Minor clean-ups to docstrings, comments, and var names. 2011-04-24 14:26:08 -07:00
Antoine Pitrou
6803dc28b1 Remove unused private function 2011-04-23 17:56:06 +02:00
Antoine Pitrou
8c52027e2d Issue #11258: Speed up ctypes.util.find_library() under Linux by a factor
of 5 to 10.  Initial patch by Jonas H.
2011-04-23 17:51:04 +02:00
Victor Stinner
7fdd0fe48f Issue #9319: Fix the unit test 2011-04-23 01:24:11 +02:00
Victor Stinner
c68b6aaec8 Issue #9319: Fix a crash on parsing a Python source code without encoding
cookie and not valid in UTF-8: use "<file>" as the filename instead of
reading from NULL.
2011-04-23 00:41:19 +02:00
Vinay Sajip
00bdbe1d97 Fixed bug in test_logging. 2011-04-22 00:17:46 +01:00
Raymond Hettinger
4f438b7b00 Minor text rearrangement. 2011-04-20 13:09:46 -07:00
Raymond Hettinger
296d6d0cd6 Minor text rearrangement. 2011-04-20 13:08:40 -07:00
Raymond Hettinger
fc330aeb6f Minor text rearrangement. 2011-04-20 13:03:49 -07:00
Ezio Melotti
5020e000c5 Merge with 3.2. 2011-04-20 21:59:06 +03:00
Ezio Melotti
af92842bf9 Use non-deprecated method name. 2011-04-20 21:56:21 +03:00
Jesus Cea
c1ceb64e41 MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828) 2011-04-20 17:59:29 +02:00
Jesus Cea
6159ee3cf5 MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828) 2011-04-20 17:42:50 +02:00
Jesus Cea
ac4515063c startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828) 2011-04-20 17:09:23 +02:00
Vinay Sajip
5e66b167ff Tidied comments and docstrings. 2011-04-20 15:41:14 +01:00
Vinay Sajip
5b9eecf8cf Attempt fix of #11557 by refining test logic. 2011-04-20 12:50:42 +01:00
Vinay Sajip
1e42f9e4c0 Attempt fix of #11557 by refining setup/teardown logic. 2011-04-20 12:20:44 +01:00
Vinay Sajip
95bf50416e Attempt fix of #11557 by changing setup/teardown logic. 2011-04-20 11:50:56 +01:00
Vinay Sajip
3def7e0f01 Attempt fix of #11557 by changing teardown logic. 2011-04-20 10:58:06 +01:00
Raymond Hettinger
f48ac3001a Issue #11875: Alter the previous fix to work better with subclasses 2011-04-19 17:19:11 -07:00
Raymond Hettinger
25458f155a Issue #11875: Alter the previous fix to work better with subclasses 2011-04-19 17:17:51 -07:00
Raymond Hettinger
d07eaf177c Issue #11875: Alter the previous fix to work better with subclasses 2011-04-19 17:17:23 -07:00
Victor Stinner
2d70e29998 Issue #11223: fix test_dummy_threading, add _dummy_thread.info() 2011-04-20 00:26:28 +02:00
Victor Stinner
754851f456 Issue #11223: Add threading._info() function providing informations about the
thread implementation.

Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of
test_threadsignals if a thread lock is implemented using a POSIX mutex and a
POSIX condition variable. A POSIX condition variable cannot be interrupted by a
signal (e.g. on Linux, the futex system call is restarted).
2011-04-19 23:58:51 +02:00
Raymond Hettinger
111474452d merge 2011-04-19 11:12:47 -07:00
Raymond Hettinger
1cc986e4a7 Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object. 2011-04-19 11:10:43 -07:00
Raymond Hettinger
98c850a398 Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object. 2011-04-19 11:04:44 -07:00
Raymond Hettinger
019a97c77c Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object. 2011-04-19 10:21:27 -07:00
Raymond Hettinger
ab69438046 Hmm, __ne__ was missing 2011-04-19 10:05:53 -07:00
Raymond Hettinger
d08a2c2576 Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object. 2011-04-19 10:05:03 -07:00
Nadeem Vawda
d7d01cd80c Merge test_startfile fix from 3.2. 2011-04-19 01:41:28 +02:00
Nadeem Vawda
cc3f029380 Merge test_startfile fix from 3.1. 2011-04-19 01:40:45 +02:00
Nadeem Vawda
58de6ee871 Fix sporadic failure in test_startfile.
Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.
2011-04-19 01:38:47 +02:00
R David Murray
3edd22ac95 #11731: simplify/enhance parser/generator API by introducing policy objects.
This new interface will also allow for future planned enhancements
in control over the parser/generator without requiring any additional
complexity in the parser/generator API.

Patch reviewed by Éric Araujo and Barry Warsaw.
2011-04-18 13:59:37 -04:00
Victor Stinner
ce16be91dc (Merge 3.2) Issue #11768: The signal handler of the signal module only calls
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
2011-04-18 16:30:17 +02:00
R David Murray
f3299989a2 Merge: #11492: rewrite header folding algorithm. Less code, more passing tests. 2011-04-18 10:11:06 -04:00
R David Murray
01581ee0b7 #11492: rewrite header folding algorithm. Less code, more passing tests. 2011-04-18 10:04:34 -04:00
Raymond Hettinger
90375bc7c0 Rework multiset methods to use less memory and to make fewer calls to __hash__. 2011-04-17 19:49:29 -07:00
Raymond Hettinger
c15d9e759f Rework multiset methods to use less memory and to make fewer calls to __hash__. 2011-04-17 19:47:24 -07:00
Raymond Hettinger
2876a8c272 Rework multiset methods to use less memory and to make fewer calls to __hash__. 2011-04-17 19:46:46 -07:00
Antoine Pitrou
cf645db809 Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition. 2011-04-16 21:02:38 +02:00
Antoine Pitrou
f25a8de845 Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition. 2011-04-16 21:02:01 +02:00
Antoine Pitrou
a4eb194ea6 Merge from 3.2 2011-04-16 18:55:16 +02:00
Antoine Pitrou
ee4293400c Fix possible "file already exists" error when running the tests in parallel.
This is a perfect example of LBYL going wrong: that code could be executed
by several workers in parallel, and os.mkdir() attempted on the same
path by multiple processes.
2011-04-16 18:53:59 +02:00
R David Murray
e2c4cfce54 Merge: Improve message.py test coverage to 100%.
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:21:49 -04:00
R David Murray
a2860e8b51 Improve message.py test coverage to 100%.
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:20:30 -04:00
Vinay Sajip
cd5a2bd48e Issue #11852: Merge fix from 3.2. 2011-04-15 22:29:15 +01:00