]>
granicus.if.org Git - python/log
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.
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: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).
Victor Stinner [Fri, 1 Jul 2011 10:59:30 +0000 (12:59 +0200)]
(merge 3.2) libpython.py (gdb) now catchs IOError in py-list and py-bt commands
py-list displays the error. py-bt ignores the error (the filename and line
number is already displayed).
Victor Stinner [Fri, 1 Jul 2011 10:57:44 +0000 (12:57 +0200)]
libpython.py (gdb) now catchs IOError in py-list and py-bt commands
py-list displays the error. py-bt ignores the error (the filename and line
number is already displayed).
Victor Stinner [Fri, 1 Jul 2011 00:57:33 +0000 (02:57 +0200)]
(merge 3.2) test_os: add TemporaryFileTests to the testcase list
The testcase was never executed, it's now fixed.
Victor Stinner [Fri, 1 Jul 2011 00:56:15 +0000 (02:56 +0200)]
test_os: add TemporaryFileTests to the testcase list
The testcase was never executed, it's now fixed.
Victor Stinner [Thu, 30 Jun 2011 21:25:47 +0000 (23:25 +0200)]
Issue #12451: Add support.create_empty_file()
We don't need to create a temporary buffered binary or text file object just to
create an empty file.
Replace also os.fdopen(handle).close() by os.close(handle).
Antoine Pitrou [Thu, 30 Jun 2011 18:04:06 +0000 (20:04 +0200)]
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
Antoine Pitrou [Thu, 30 Jun 2011 18:02:54 +0000 (20:02 +0200)]
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
Giampaolo Rodola' [Thu, 30 Jun 2011 16:34:41 +0000 (18:34 +0200)]
Issue 12139: ftplib - remove 'post CCC' test to fix various buildot failures due to dummy test server not properly handling SSL shutdown(), see http://bugs.python.org/msg139499
Victor Stinner [Thu, 30 Jun 2011 16:25:07 +0000 (18:25 +0200)]
Issue #12451: Open the test file in binary mode in test_bz2, the text file is
not needed.
Victor Stinner [Thu, 30 Jun 2011 16:21:39 +0000 (18:21 +0200)]
(merge 3.2) Issue #12451: Open files in binary mode in some tests when the text
file is not needed.
Remove also an unused variable (blank) in test_threading.
Victor Stinner [Thu, 30 Jun 2011 16:20:11 +0000 (18:20 +0200)]
Issue #12451: Open files in binary mode in some tests when the text file is not
needed.
Remove also an unused variable (blank) in test_threading.
Victor Stinner [Thu, 30 Jun 2011 16:11:18 +0000 (18:11 +0200)]
(merge 3.2) Issue #12451: The XInclude default loader of xml.etree now decodes
files from UTF-8 instead of the locale encoding if the encoding is not
specified. It now also opens XML files for the parser in binary mode instead of
the text mode to avoid encoding issues.
Victor Stinner [Thu, 30 Jun 2011 16:10:14 +0000 (18:10 +0200)]
Issue #12451: The XInclude default loader of xml.etree now decodes files from
UTF-8 instead of the locale encoding if the encoding is not specified. It now
also opens XML files for the parser in binary mode instead of the text mode to
avoid encoding issues.
Victor Stinner [Thu, 30 Jun 2011 15:39:17 +0000 (17:39 +0200)]
(merge 3.2) Issue #12451: doctest.debug_script() doesn't create a temporary
file anymore to avoid encoding issues (it used the locale encoding, whereas
UTF-8 should be).
Remove also an unused import (warnings).
Victor Stinner [Thu, 30 Jun 2011 15:35:55 +0000 (17:35 +0200)]
Issue #12451: doctest.debug_script() doesn't create a temporary file anymore to
avoid encoding issues (it used the locale encoding, whereas UTF-8 should be).
Remove also an unused import (warnings).
Victor Stinner [Thu, 30 Jun 2011 13:58:29 +0000 (15:58 +0200)]
(merge 3.2) Issue #12451: pydoc.synopsis() now reads the encoding cookie if
available, to read the Python script from the right encoding.
Victor Stinner [Thu, 30 Jun 2011 13:55:43 +0000 (15:55 +0200)]
Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, to
read the Python script from the right encoding.
Victor Stinner [Thu, 30 Jun 2011 13:41:56 +0000 (15:41 +0200)]
(merge 3.2) Issue #12451: distutils now opens the setup script in binary mode
to read the encoding cookie, instead of opening it in UTF-8.
Victor Stinner [Thu, 30 Jun 2011 13:40:22 +0000 (15:40 +0200)]
Issue #12451: distutils now opens the setup script in binary mode to read the
encoding cookie, instead of opening it in UTF-8.
Benjamin Peterson [Thu, 30 Jun 2011 03:53:19 +0000 (22:53 -0500)]
merge heads
Benjamin Peterson [Thu, 30 Jun 2011 03:52:39 +0000 (22:52 -0500)]
store the current scope on the stack right away
Victor Stinner [Wed, 29 Jun 2011 22:00:45 +0000 (00:00 +0200)]
Issue #12400: test_cprofile now restores correctly the previous sys.stderr
Copy sys.stderr before replacing it, instead of using sys.__stderr__
Victor Stinner [Wed, 29 Jun 2011 21:28:02 +0000 (23:28 +0200)]
faulthandler: add missing include, pthread.h, for FreeBSD 6
Victor Stinner [Wed, 29 Jun 2011 21:24:31 +0000 (23:24 +0200)]
Issue #12400: test_faulthandler now uses sys.__stderr__
instead of open(os.devnull, 'w')
Benjamin Peterson [Wed, 29 Jun 2011 20:27:14 +0000 (15:27 -0500)]
remove VISIT_*_IN_BLOCK macros
These are pointless because on error, all blocks will be finalized by
symtable_dealloc.
Victor Stinner [Wed, 29 Jun 2011 18:03:13 +0000 (20:03 +0200)]
(merge 3.2) Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()
.truncate(0) doesn't rewind.
Victor Stinner [Wed, 29 Jun 2011 18:01:29 +0000 (20:01 +0200)]
Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()
.truncate(0) doesn't rewind.
Victor Stinner [Wed, 29 Jun 2011 16:12:33 +0000 (18:12 +0200)]
(merge 3.2) Issue #12400: test_zipimport_support doesn't restore original
sys.stdout anymore
regrtest doesn't check that a test doesn't output anything anymore.
Victor Stinner [Wed, 29 Jun 2011 16:11:36 +0000 (18:11 +0200)]
Issue #12400: test_zipimport_support doesn't restore original sys.stdout
anymore
regrtest doesn't check that a test doesn't output anything anymore.
Victor Stinner [Wed, 29 Jun 2011 15:29:22 +0000 (17:29 +0200)]
(merge 3.2) Issue #12400: runtest() truncates the StringIO stream before a new
test
Victor Stinner [Wed, 29 Jun 2011 15:26:38 +0000 (17:26 +0200)]
Issue #12400: runtest() truncates the StringIO stream before a new test
Victor Stinner [Wed, 29 Jun 2011 15:20:33 +0000 (17:20 +0200)]
(merge 3.2) Issue #12400: Add missing import (os) to test_kqueue
Victor Stinner [Wed, 29 Jun 2011 15:20:02 +0000 (17:20 +0200)]
Issue #12400: Add missing import (os) to test_kqueue
Victor Stinner [Wed, 29 Jun 2011 13:53:11 +0000 (15:53 +0200)]
Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore
regrtest doesn't check that tests doesn't write something to stdout anymore.
Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
Victor Stinner [Wed, 29 Jun 2011 13:52:46 +0000 (15:52 +0200)]
Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore
regrtest doesn't check that tests doesn't write something to stdout anymore.
Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
Victor Stinner [Wed, 29 Jun 2011 13:38:18 +0000 (15:38 +0200)]
(merge 3.2) Issue #12400: regrtest, force verbose mode to True with option -W
If verbose is False, the output is empty. Fix also a typo in a variable name.
Victor Stinner [Wed, 29 Jun 2011 13:34:48 +0000 (15:34 +0200)]
Issue #12400: regrtest, force verbose mode to True with option -W
If verbose is False, the output is empty. Fix also a typo in a variable name.
Victor Stinner [Wed, 29 Jun 2011 13:25:40 +0000 (15:25 +0200)]
(merge 3.2) Issue #12400: runtest() reuses the same io.StringIO instance for
all calls
* Don't force verbose to True with option -W
* Rename rerun_failed variable to output_on_failure
Victor Stinner [Wed, 29 Jun 2011 13:22:26 +0000 (15:22 +0200)]
Issue #12400: runtest() reuses the same io.StringIO instance for all calls
* Don't force verbose to True with option -W
* Rename rerun_failed variable to output_on_failure
Victor Stinner [Wed, 29 Jun 2011 12:59:46 +0000 (14:59 +0200)]
(merge 3.2) Issue #12400: don't use sys.stderr in test_kqueue because it may be
replaced by a io.StringIO object by regrtest (which has no file descriptor).
Victor Stinner [Wed, 29 Jun 2011 12:59:10 +0000 (14:59 +0200)]
Issue #12400: don't use sys.stderr in test_kqueue because it may be replaced by
a io.StringIO object by regrtest (which has no file descriptor).
Victor Stinner [Wed, 29 Jun 2011 11:44:05 +0000 (13:44 +0200)]
Issue #12400: fix test_faulthandler if regrtest captures sys.stderr
faulthandler.enable() requires that sys.stderr has a fileno() method.
Victor Stinner [Wed, 29 Jun 2011 11:24:58 +0000 (13:24 +0200)]
(merge 3.2) Issue #12400: remove unused import
Victor Stinner [Wed, 29 Jun 2011 11:24:28 +0000 (13:24 +0200)]
Issue #12400: remove unused variable
Victor Stinner [Wed, 29 Jun 2011 11:23:49 +0000 (13:23 +0200)]
Issue #12400: oops, remove debug code...
Victor Stinner [Wed, 29 Jun 2011 11:04:35 +0000 (13:04 +0200)]
(merge 3.2) Issue #12400: regrtest -W doesn't rerun the tests twice anymore,
but captures the output and displays it on failure instead. regrtest -v doesn't
print the error twice anymore if there is only one error.
Victor Stinner [Wed, 29 Jun 2011 11:00:54 +0000 (13:00 +0200)]
Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
the output and displays it on failure instead. regrtest -v doesn't print the
error twice anymore if there is only one error.
Victor Stinner [Wed, 29 Jun 2011 08:43:02 +0000 (10:43 +0200)]
Issue #12303: run sig*wait*() tests in a subprocesss
... instead of using fork(): sig*wait*() functions behave differently (not
correctly) after a fork, especially on FreeBSD 6.
Skip also test_sigtimedwait_poll() on FreeBSD 6 because of a kernel bug.
Ned Deily [Wed, 29 Jun 2011 03:22:30 +0000 (20:22 -0700)]
Merge 3.2 to default
Ned Deily [Wed, 29 Jun 2011 03:19:36 +0000 (20:19 -0700)]
Merge 3.2
Ned Deily [Wed, 29 Jun 2011 03:16:55 +0000 (20:16 -0700)]
Merge default.
Ned Deily [Wed, 29 Jun 2011 03:08:34 +0000 (20:08 -0700)]
Issue #9516: Update Misc/NEWS to include packaging.
Ned Deily [Wed, 29 Jun 2011 03:04:24 +0000 (20:04 -0700)]
Issue #9516: Port the revised deployment target processing for OSX from
distutils to packaging.
Ned Deily [Wed, 29 Jun 2011 03:03:17 +0000 (20:03 -0700)]
Issue #9516: Port OS X deployment target tests from distutils to packaging
test_command_build_ext.