Benjamin Peterson [Tue, 5 Jul 2011 03:28:00 +0000 (22:28 -0500)]
merge 3.2
Benjamin Peterson [Tue, 5 Jul 2011 03:27:16 +0000 (22:27 -0500)]
start out this branch always with filename NULL
Ned Deily [Tue, 5 Jul 2011 02:11:14 +0000 (19:11 -0700)]
Issue #12497: Install test/data to prevent failures of the various codecmaps
tests.
Ned Deily [Tue, 5 Jul 2011 02:06:20 +0000 (19:06 -0700)]
Issue #12497: Install test/data to prevent failures of the various codecmaps
tests.
Ned Deily [Tue, 5 Jul 2011 00:51:48 +0000 (17:51 -0700)]
Issue #12496: Install test/capath directory to prevent test_connect_capath
testcase failure in test_ssl.
Ned Deily [Tue, 5 Jul 2011 00:48:01 +0000 (17:48 -0700)]
Issue #12496: Install test/capath directory to prevent test_connect_capath
testcase failure in test_ssl.
Victor Stinner [Mon, 4 Jul 2011 23:32:06 +0000 (01:32 +0200)]
Issue #12469: fix signal order check of test_signal
When signals are unblocked, pending signal ared delivered in the reverse order
of their number (also on Linux, not only on FreeBSD 6).
Don't sort signals by their number if signals were not blocked (test_signum).
Victor Stinner [Mon, 4 Jul 2011 23:15:08 +0000 (01:15 +0200)]
Issue #12469: test_signal checks wakeup signals order, except on freebsd6
On FreeBSD 6, when signals are unblocked, FreeBSD 6 delivers signals in the
reverse order of their number.
Victor Stinner [Mon, 4 Jul 2011 20:53:49 +0000 (22:53 +0200)]
Issue #12469: partial revert of
024827a9db64, freebsd6 thread initialization
* Don't create a thread at startup anymore to initialize the pthread library:
it changes the behaviour of many functions related to signal handling like
sigwait()
* Reenable test_sigtimedwait_poll() on FreeBSD 6
Senthil Kumaran [Mon, 4 Jul 2011 18:44:17 +0000 (11:44 -0700)]
merge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 18:43:51 +0000 (11:43 -0700)]
Fix whitespace nit in datetime and os rst files.
Senthil Kumaran [Mon, 4 Jul 2011 18:31:53 +0000 (11:31 -0700)]
Merge from 3.2 . Replace the term members with correct and appropriate terminology. Initial patch by Adam Woodbeck.
Senthil Kumaran [Mon, 4 Jul 2011 18:28:30 +0000 (11:28 -0700)]
issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage.
Georg Brandl [Mon, 4 Jul 2011 17:58:12 +0000 (19:58 +0200)]
Merge with 3.2.
Georg Brandl [Mon, 4 Jul 2011 17:55:22 +0000 (19:55 +0200)]
Merge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.
Victor Stinner [Mon, 4 Jul 2011 16:06:35 +0000 (18:06 +0200)]
Issue #12469: replace assertions by explicit if+raise
Victor Stinner [Mon, 4 Jul 2011 15:49:40 +0000 (17:49 +0200)]
(merge 3.2) Issue #12469: Run wakeup and pending signal tests in a subprocess
to run the test in a fresh process with only one thread and to not change
signal handling of the parent process.
Victor Stinner [Mon, 4 Jul 2011 15:35:10 +0000 (17:35 +0200)]
Issue #12469: Run "wakeup" signal tests in subprocess to run the test in a
fresh process with only one thread and to not change signal handling of the
parent process.
Victor Stinner [Mon, 4 Jul 2011 12:28:45 +0000 (14:28 +0200)]
Issue #12452: Plist and Dict are now deprecated
Replace PendingDeprecationWarning warnings by DeprecationWarning.
Victor Stinner [Mon, 4 Jul 2011 12:23:54 +0000 (14:23 +0200)]
Issue #9642: Uniformize the tests on the availability of the mbcs codec
Add a new HAVE_MBCS define.
Victor Stinner [Mon, 4 Jul 2011 11:55:40 +0000 (13:55 +0200)]
Issue #9642: Fix the definition of time.clock() on Windows
Don't unset and set againt the HAVE_CLOCK define, reorder the #if tests
instead. Fix also the definition of the timezone encoding.
Victor Stinner [Mon, 4 Jul 2011 11:48:30 +0000 (13:48 +0200)]
Issue #9642: Fix filesystem encoding initialization: use the ANSI code page on
Windows if the mbcs codec is not available, and fail with a fatal error if we
cannot get the locale encoding (if nl_langinfo(CODESET) is not available)
instead of using UTF-8.
Victor Stinner [Mon, 4 Jul 2011 09:51:21 +0000 (11:51 +0200)]
null merge 3.2
Python 3.3 has the correct fix for #12429, use pthread_sigmask().
Victor Stinner [Mon, 4 Jul 2011 09:48:17 +0000 (11:48 +0200)]
Issue #12429: Skip interrupted write tests on FreeBSD <= 7
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
Ned Deily [Mon, 4 Jul 2011 05:27:16 +0000 (22:27 -0700)]
Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
Ned Deily [Mon, 4 Jul 2011 04:56:48 +0000 (21:56 -0700)]
Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
Senthil Kumaran [Mon, 4 Jul 2011 04:05:25 +0000 (21:05 -0700)]
merge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 04:03:16 +0000 (21:03 -0700)]
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.
Benjamin Peterson [Mon, 4 Jul 2011 03:19:29 +0000 (22:19 -0500)]
merge 3.2
Benjamin Peterson [Mon, 4 Jul 2011 03:18:34 +0000 (22:18 -0500)]
plug refleak
Senthil Kumaran [Mon, 4 Jul 2011 01:22:14 +0000 (18:22 -0700)]
merge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)]
Fix closes issue issue12470 - check for utime for the skipUnless condition.
Victor Stinner [Mon, 4 Jul 2011 00:56:10 +0000 (02:56 +0200)]
(merge 3.2) Issue #12467: warnings: fix a race condition if a warning is
emitted at shutdown, if globals()['__file__'] is None.
Victor Stinner [Mon, 4 Jul 2011 00:43:09 +0000 (02:43 +0200)]
Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
Georg Brandl [Mon, 4 Jul 2011 06:20:48 +0000 (08:20 +0200)]
Post-release steps.
Victor Stinner [Mon, 4 Jul 2011 00:43:09 +0000 (02:43 +0200)]
Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
Senthil Kumaran [Mon, 4 Jul 2011 00:40:39 +0000 (17:40 -0700)]
Merge from 3.2. 'idle_formatwarning' is the correct method name.
Senthil Kumaran [Mon, 4 Jul 2011 00:39:20 +0000 (17:39 -0700)]
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
Senthil Kumaran [Mon, 4 Jul 2011 00:21:44 +0000 (17:21 -0700)]
merge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 00:21:05 +0000 (17:21 -0700)]
Fix closes issue12432 - remove the unused sys from glob.py
Victor Stinner [Mon, 4 Jul 2011 00:09:44 +0000 (02:09 +0200)]
(merge 3.2) Issue #12451: pydoc: importfile() now opens the Python script in
binary mode, instead of text mode using the locale encoding, to avoid encoding
issues.
Victor Stinner [Mon, 4 Jul 2011 00:08:50 +0000 (02:08 +0200)]
Issue #12451: pydoc: importfile() now opens the Python script in binary mode,
instead of text mode using the locale encoding, to avoid encoding issues.
Victor Stinner [Sun, 3 Jul 2011 23:47:40 +0000 (01:47 +0200)]
(merge 3.2) Issue #12451: runpy: run_path() now opens the Python script in
binary mode, instead of text mode using the locale encoding, to support other
encodings than UTF-8 (scripts using the coding cookie).
Victor Stinner [Sun, 3 Jul 2011 23:45:39 +0000 (01:45 +0200)]
Issue #12451: runpy: run_path() now opens the Python script in binary mode,
instead of text mode using the locale encoding, to support other encodings than
UTF-8 (scripts using the coding cookie).
Victor Stinner [Sun, 3 Jul 2011 23:27:37 +0000 (01:27 +0200)]
(merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binary
mode instead of the text mode (using the locale encoding) to avoid encoding
issues.
Victor Stinner [Sun, 3 Jul 2011 23:25:55 +0000 (01:25 +0200)]
Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
of the text mode (using the locale encoding) to avoid encoding issues.
Benjamin Peterson [Sun, 3 Jul 2011 22:23:22 +0000 (17:23 -0500)]
this is expressed better as a for loop
Benjamin Peterson [Sun, 3 Jul 2011 22:06:32 +0000 (17:06 -0500)]
no one passes NULL here (or should anyway)
Benjamin Peterson [Sun, 3 Jul 2011 21:48:31 +0000 (16:48 -0500)]
convert generator exc state functions into static functions
Benjamin Peterson [Sun, 3 Jul 2011 21:27:41 +0000 (16:27 -0500)]
merge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 21:25:11 +0000 (16:25 -0500)]
never retain a generator's caller's exception state on the generator after a yield/return
This requires some trickery to properly save the exception state if the
generator creates its own exception state.
Benjamin Peterson [Sun, 3 Jul 2011 18:50:16 +0000 (13:50 -0500)]
merge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 18:49:59 +0000 (13:49 -0500)]
add '
Benjamin Peterson [Sun, 3 Jul 2011 18:48:36 +0000 (13:48 -0500)]
merge 3.2 (#12475)
Benjamin Peterson [Sun, 3 Jul 2011 18:45:33 +0000 (13:45 -0500)]
merge heads
Benjamin Peterson [Sun, 3 Jul 2011 18:44:56 +0000 (13:44 -0500)]
merge heads
Benjamin Peterson [Sun, 3 Jul 2011 18:44:00 +0000 (13:44 -0500)]
restore a generator's caller's exception state both on yield and (last) return
This prevents generator exception state from leaking into the caller.
Closes #12475.
Benjamin Peterson [Sun, 3 Jul 2011 18:32:17 +0000 (13:32 -0500)]
merge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 18:31:34 +0000 (13:31 -0500)]
add 3.2.2 heading
Senthil Kumaran [Sun, 3 Jul 2011 17:23:43 +0000 (10:23 -0700)]
merge from 3.2
Georg Brandl [Sun, 3 Jul 2011 17:22:42 +0000 (19:22 +0200)]
Remove mention of medical condition from the test suite.
Senthil Kumaran [Sun, 3 Jul 2011 17:17:22 +0000 (10:17 -0700)]
reST indentation fix in sqlite3 docs. rst uses 3 space indentation.
Antoine Pitrou [Sun, 3 Jul 2011 11:17:06 +0000 (13:17 +0200)]
Followup to
51c1f2cedb96 (and issue #12456):
qsize() raises NotImplementedError on OS X, don't use it.
Georg Brandl [Sun, 3 Jul 2011 09:54:09 +0000 (11:54 +0200)]
Added tag v3.2.1rc2 for changeset
5df549718fb4
Vinay Sajip [Sun, 3 Jul 2011 09:35:41 +0000 (10:35 +0100)]
Issue #12406: Added upates for packaging's .exe files, command_template, and sysconfig.cfg.
Georg Brandl [Sun, 3 Jul 2011 07:42:43 +0000 (09:42 +0200)]
NEWS rewrap.
Georg Brandl [Sun, 3 Jul 2011 07:41:27 +0000 (09:41 +0200)]
Bump to 3.2.1rc2.
Georg Brandl [Sun, 3 Jul 2011 07:39:49 +0000 (09:39 +0200)]
Fix bad markup.
Georg Brandl [Sun, 3 Jul 2011 07:31:04 +0000 (09:31 +0200)]
Update pydoc topics.
Georg Brandl [Sun, 3 Jul 2011 07:30:42 +0000 (09:30 +0200)]
Fix target path in message.
Georg Brandl [Sun, 3 Jul 2011 07:25:32 +0000 (09:25 +0200)]
Dummy-merge configure change from 3.2 that is already in default.
Georg Brandl [Sun, 3 Jul 2011 07:23:20 +0000 (09:23 +0200)]
Regenerate configure.
R David Murray [Sun, 3 Jul 2011 01:10:44 +0000 (21:10 -0400)]
merge #12147: make send_message correctly handle Sender and Resent- headers.
R David Murray [Sun, 3 Jul 2011 01:03:19 +0000 (21:03 -0400)]
#12147: make send_message correctly handle Sender and Resent- headers.
Original patch by Nicolas Estibals. My tweaks to the patch were mostly
style/cosmetic, and adding more tests.
Antoine Pitrou [Sat, 2 Jul 2011 19:20:25 +0000 (21:20 +0200)]
Issue #12456: fix a possible hang on shutdown of a concurrent.futures.ProcessPoolExecutor.
Vinay Sajip [Sat, 2 Jul 2011 17:42:21 +0000 (18:42 +0100)]
Correct uninitialized data problem in marshal code.
Vinay Sajip [Sat, 2 Jul 2011 16:22:58 +0000 (17:22 +0100)]
Merged unused variable removal from 3.2.
Vinay Sajip [Sat, 2 Jul 2011 16:21:37 +0000 (17:21 +0100)]
Removed some unused local variables.
Vinay Sajip [Sat, 2 Jul 2011 16:19:51 +0000 (17:19 +0100)]
Removed breaking typo accidentally introduced during merge with 3.2.
Vinay Sajip [Sat, 2 Jul 2011 16:16:02 +0000 (17:16 +0100)]
Closes #12291 for 3.3 - merged fix from 3.2.
Vinay Sajip [Sat, 2 Jul 2011 15:42:47 +0000 (16:42 +0100)]
Closes #12291: Fixed bug which was found when doing multiple loads from one stream.
Éric Araujo [Sat, 2 Jul 2011 14:45:45 +0000 (16:45 +0200)]
Clean up NEWS entry and tests for shutil.disk_usage (#12442)
Benjamin Peterson [Sat, 2 Jul 2011 14:22:13 +0000 (09:22 -0500)]
fix possibily uninitialized memory usage (closes #12474)
Charles-François Natali [Sat, 2 Jul 2011 12:43:11 +0000 (14:43 +0200)]
Merge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
freed by the garbage collector while the Heap lock is held.
Charles-François Natali [Sat, 2 Jul 2011 12:39:53 +0000 (14:39 +0200)]
Merge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
freed by the garbage collector while the Heap lock is held.
Charles-François Natali [Sat, 2 Jul 2011 12:35:49 +0000 (14:35 +0200)]
Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
the garbage collector while the Heap lock is held.
R David Murray [Fri, 1 Jul 2011 18:57:00 +0000 (14:57 -0400)]
merge #11873: another try at fixing the regex, courtesy of Victor Stinner
R David Murray [Fri, 1 Jul 2011 18:55:43 +0000 (14:55 -0400)]
#11873: another try at fixing the regex, courtesy of Victor Stinner
R David Murray [Fri, 1 Jul 2011 15:53:19 +0000 (11:53 -0400)]
merge #11873: fix test regex so it covers windows os.sep as well.
R David Murray [Fri, 1 Jul 2011 15:51:50 +0000 (11:51 -0400)]
#11873: fix test regex so it covers windows os.sep as well.
Victor Stinner [Fri, 1 Jul 2011 13:59:54 +0000 (15:59 +0200)]
(merge 3.2) Issue #12363: increase the timeout of siginterrupt() tests
Move also the "ready" trigger after the installation of the signal handler and
the call to siginterrupt().
Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough,
but some of our buildbots are really slow (especially the FreeBSD 6 VM).
Victor Stinner [Fri, 1 Jul 2011 13:58:39 +0000 (15:58 +0200)]
Issue #12363: increase the timeout of siginterrupt() tests
Move also the "ready" trigger after the installation of the signal handler and
the call to siginterrupt().
Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough,
but some of our buildbots are really slow (especially the FreeBSD 6 VM).
Victor Stinner [Fri, 1 Jul 2011 13:25:58 +0000 (15:25 +0200)]
(null merge 3.2, patch already applied to 3.3)
Victor Stinner [Fri, 1 Jul 2011 13:24:50 +0000 (15:24 +0200)]
Issue #12363: improve siginterrupt() tests
Backport commits
968b9ff9a059 and
aff0a7b0cb12 from the default branch to 3.2
branch. Extract of the changelog messages:
"The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.
The new tests only use one process, but they use a subprocess to:
- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process"
and
"Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout."
I replaced .communicate(timeout=3.0) by an explicit waiting loop using
Popen.poll().
Victor Stinner [Fri, 1 Jul 2011 12:53:07 +0000 (14:53 +0200)]
(merge 3.2) Issue #11870: Skip test_threading.test_2_join_in_forked_process()
on platforms with known OS bugs
Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.
Victor Stinner [Fri, 1 Jul 2011 12:26:24 +0000 (14:26 +0200)]
Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
with known OS bugs
Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.
Victor Stinner [Fri, 1 Jul 2011 11:50:09 +0000 (13:50 +0200)]
Issue #12462: time.sleep() now calls immediatly the (Python) signal handler if
it is interrupted by a signal, instead of having to wait until the next
instruction.
Patch reviewed by Antoine Pitrou.
Giampaolo Rodola' [Fri, 1 Jul 2011 11:55:36 +0000 (13:55 +0200)]
Issue #12442: add shutil.disk_usage()
Victor Stinner [Fri, 1 Jul 2011 11:47:03 +0000 (13:47 +0200)]
(merge 3.2) test_os: remove now useless TemporaryFileTests testcase
TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.
Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).
Victor Stinner [Fri, 1 Jul 2011 11:45:30 +0000 (13:45 +0200)]
test_os: remove now useless TemporaryFileTests testcase
TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.
Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).