]> granicus.if.org Git - python/log
python
13 years agoIssue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
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).

13 years agoIssue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
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).

13 years agomerge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 04:05:25 +0000 (21:05 -0700)]
merge from 3.2

13 years agoFix closes issue12471 - wrong TypeError message when '%i' format spec was used.
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.

13 years agomerge 3.2
Benjamin Peterson [Mon, 4 Jul 2011 03:19:29 +0000 (22:19 -0500)]
merge 3.2

13 years agoplug refleak
Benjamin Peterson [Mon, 4 Jul 2011 03:18:34 +0000 (22:18 -0500)]
plug refleak

13 years agomerge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 01:22:14 +0000 (18:22 -0700)]
merge from 3.2

13 years agoFix closes issue issue12470 - check for utime for the skipUnless condition.
Senthil Kumaran [Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)]
Fix closes issue issue12470 - check for utime for the skipUnless condition.

13 years ago(merge 3.2) Issue #12467: warnings: fix a race condition if a warning is
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.

13 years agoIssue #12467: warnings: fix a race condition if a warning is emitted at
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.

13 years agoMerge from 3.2. 'idle_formatwarning' is the correct method name.
Senthil Kumaran [Mon, 4 Jul 2011 00:40:39 +0000 (17:40 -0700)]
Merge from 3.2.  'idle_formatwarning' is the correct method name.

13 years agoFix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an...
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.

13 years agomerge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 00:21:44 +0000 (17:21 -0700)]
merge from 3.2

13 years agoFix closes issue12432 - remove the unused sys from glob.py
Senthil Kumaran [Mon, 4 Jul 2011 00:21:05 +0000 (17:21 -0700)]
Fix closes issue12432 - remove the unused sys from glob.py

13 years ago(merge 3.2) Issue #12451: pydoc: importfile() now opens the Python script in
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.

13 years agoIssue #12451: pydoc: importfile() now opens the Python script in binary mode,
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.

13 years ago(merge 3.2) Issue #12451: runpy: run_path() now opens the Python script in
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).

13 years agoIssue #12451: runpy: run_path() now opens the Python script in binary mode,
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).

13 years ago(merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binary
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.

13 years agoIssue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
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.

13 years agothis is expressed better as a for loop
Benjamin Peterson [Sun, 3 Jul 2011 22:23:22 +0000 (17:23 -0500)]
this is expressed better as a for loop

13 years agono one passes NULL here (or should anyway)
Benjamin Peterson [Sun, 3 Jul 2011 22:06:32 +0000 (17:06 -0500)]
no one passes NULL here (or should anyway)

13 years agoconvert generator exc state functions into static functions
Benjamin Peterson [Sun, 3 Jul 2011 21:48:31 +0000 (16:48 -0500)]
convert generator exc state functions into static functions

13 years agomerge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 21:27:41 +0000 (16:27 -0500)]
merge 3.2

13 years agonever retain a generator's caller's exception state on the generator after a yield...
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.

13 years agomerge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 18:50:16 +0000 (13:50 -0500)]
merge 3.2

13 years agoadd '
Benjamin Peterson [Sun, 3 Jul 2011 18:49:59 +0000 (13:49 -0500)]
add '

13 years agomerge 3.2 (#12475)
Benjamin Peterson [Sun, 3 Jul 2011 18:48:36 +0000 (13:48 -0500)]
merge 3.2 (#12475)

13 years agomerge heads
Benjamin Peterson [Sun, 3 Jul 2011 18:45:33 +0000 (13:45 -0500)]
merge heads

13 years agomerge heads
Benjamin Peterson [Sun, 3 Jul 2011 18:44:56 +0000 (13:44 -0500)]
merge heads

13 years agorestore a generator's caller's exception state both on yield and (last) return
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.

13 years agomerge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 18:32:17 +0000 (13:32 -0500)]
merge 3.2

13 years agoadd 3.2.2 heading
Benjamin Peterson [Sun, 3 Jul 2011 18:31:34 +0000 (13:31 -0500)]
add 3.2.2 heading

13 years agomerge from 3.2
Senthil Kumaran [Sun, 3 Jul 2011 17:23:43 +0000 (10:23 -0700)]
merge from 3.2

13 years agoRemove mention of medical condition from the test suite.
Georg Brandl [Sun, 3 Jul 2011 17:22:42 +0000 (19:22 +0200)]
Remove mention of medical condition from the test suite.

13 years agoreST indentation fix in sqlite3 docs. rst uses 3 space indentation.
Senthil Kumaran [Sun, 3 Jul 2011 17:17:22 +0000 (10:17 -0700)]
reST indentation fix in sqlite3 docs. rst uses 3 space indentation.

13 years agoFollowup to 51c1f2cedb96 (and issue #12456):
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.

13 years agoIssue #12406: Added upates for packaging's .exe files, command_template, and sysconfi...
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.

13 years agoDummy-merge configure change from 3.2 that is already in default.
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.

13 years agoRegenerate configure.
Georg Brandl [Sun, 3 Jul 2011 07:23:20 +0000 (09:23 +0200)]
Regenerate configure.

13 years agomerge #12147: make send_message correctly handle Sender and Resent- headers.
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.

13 years ago#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.

13 years agoIssue #12456: fix a possible hang on shutdown of a concurrent.futures.ProcessPoolExec...
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.

14 years agoCorrect uninitialized data problem in marshal code.
Vinay Sajip [Sat, 2 Jul 2011 17:42:21 +0000 (18:42 +0100)]
Correct uninitialized data problem in marshal code.

14 years agoMerged unused variable removal from 3.2.
Vinay Sajip [Sat, 2 Jul 2011 16:22:58 +0000 (17:22 +0100)]
Merged unused variable removal from 3.2.

14 years agoRemoved some unused local variables.
Vinay Sajip [Sat, 2 Jul 2011 16:21:37 +0000 (17:21 +0100)]
Removed some unused local variables.

14 years agoRemoved breaking typo accidentally introduced during merge with 3.2.
Vinay Sajip [Sat, 2 Jul 2011 16:19:51 +0000 (17:19 +0100)]
Removed breaking typo accidentally introduced during merge with 3.2.

14 years agoCloses #12291 for 3.3 - merged fix from 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.

14 years agoCloses #12291: Fixed bug which was found when doing multiple loads from one stream.
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.

14 years agoClean up NEWS entry and tests for shutil.disk_usage (#12442)
Éric Araujo [Sat, 2 Jul 2011 14:45:45 +0000 (16:45 +0200)]
Clean up NEWS entry and tests for shutil.disk_usage (#12442)

14 years agofix possibily uninitialized memory usage (closes #12474)
Benjamin Peterson [Sat, 2 Jul 2011 14:22:13 +0000 (09:22 -0500)]
fix possibily uninitialized memory usage (closes #12474)

14 years agoMerge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
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.

14 years agoMerge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
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.

14 years agoIssue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
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.

14 years agomerge #11873: another try at fixing the regex, courtesy of Victor Stinner
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

14 years ago#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

14 years agomerge #11873: fix test regex so it covers windows os.sep as well.
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.

14 years ago#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.

14 years ago(merge 3.2) Issue #12363: increase the timeout of siginterrupt() tests
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).

14 years agoIssue #12363: increase the timeout of siginterrupt() tests
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).

14 years ago(null merge 3.2, patch already applied to 3.3)
Victor Stinner [Fri, 1 Jul 2011 13:25:58 +0000 (15:25 +0200)]
(null merge 3.2, patch already applied to 3.3)

14 years agoIssue #12363: improve siginterrupt() tests
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().

14 years ago(merge 3.2) Issue #11870: Skip test_threading.test_2_join_in_forked_process()
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.

14 years agoIssue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
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.

14 years agoIssue #12462: time.sleep() now calls immediatly the (Python) signal handler if
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.

14 years agoIssue #12442: add shutil.disk_usage()
Giampaolo Rodola' [Fri, 1 Jul 2011 11:55:36 +0000 (13:55 +0200)]
Issue #12442: add shutil.disk_usage()

14 years ago(merge 3.2) test_os: remove now useless TemporaryFileTests testcase
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).

14 years agotest_os: remove now useless TemporaryFileTests testcase
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).

14 years ago(merge 3.2) libpython.py (gdb) now catchs IOError in py-list and py-bt commands
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).

14 years agolibpython.py (gdb) now catchs IOError in py-list and py-bt commands
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).

14 years ago(merge 3.2) test_os: add TemporaryFileTests to the testcase list
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.

14 years agotest_os: add TemporaryFileTests to the testcase list
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.

14 years agoIssue #12451: Add support.create_empty_file()
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).

14 years agoIssue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
Antoine Pitrou [Thu, 30 Jun 2011 18:04:06 +0000 (20:04 +0200)]
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.

14 years agoIssue #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.

14 years agoIssue 12139: ftplib - remove 'post CCC' test to fix various buildot failures due...
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

14 years agoIssue #12451: Open the test file in binary mode in test_bz2, the text file is
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.

14 years ago(merge 3.2) Issue #12451: Open files in binary mode in some tests when the text
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.

14 years agoIssue #12451: Open files in binary mode in some tests when the text file is not
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.

14 years ago(merge 3.2) Issue #12451: The XInclude default loader of xml.etree now decodes
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.

14 years agoIssue #12451: The XInclude default loader of xml.etree now decodes files from
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.

14 years ago(merge 3.2) Issue #12451: doctest.debug_script() doesn't create a temporary
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).

14 years agoIssue #12451: doctest.debug_script() doesn't create a temporary file anymore to
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).

14 years ago(merge 3.2) Issue #12451: pydoc.synopsis() now reads the encoding cookie if
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.

14 years agoIssue #12451: pydoc.synopsis() now reads the encoding cookie if available, to
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.

14 years ago(merge 3.2) Issue #12451: distutils now opens the setup script in binary mode
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.

14 years agoIssue #12451: distutils now opens the setup script in binary mode to read the
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.

14 years agomerge heads
Benjamin Peterson [Thu, 30 Jun 2011 03:53:19 +0000 (22:53 -0500)]
merge heads

14 years agostore the current scope on the stack right away
Benjamin Peterson [Thu, 30 Jun 2011 03:52:39 +0000 (22:52 -0500)]
store the current scope on the stack right away

14 years agoIssue #12400: test_cprofile now restores correctly the previous sys.stderr
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__

14 years agofaulthandler: add missing include, pthread.h, for FreeBSD 6
Victor Stinner [Wed, 29 Jun 2011 21:28:02 +0000 (23:28 +0200)]
faulthandler: add missing include, pthread.h, for FreeBSD 6

14 years agoIssue #12400: test_faulthandler now uses sys.__stderr__
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')

14 years agoremove VISIT_*_IN_BLOCK macros
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.

14 years ago(merge 3.2) Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()
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.

14 years agoIssue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()
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.

14 years ago(merge 3.2) Issue #12400: test_zipimport_support doesn't restore original
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.

14 years agoIssue #12400: test_zipimport_support doesn't restore original sys.stdout
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.

14 years ago(merge 3.2) Issue #12400: runtest() truncates the StringIO stream before a new
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

14 years agoIssue #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

14 years ago(merge 3.2) Issue #12400: Add missing import (os) to test_kqueue
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