Éric Araujo [Tue, 31 May 2011 16:04:32 +0000 (18:04 +0200)]
Re-apply distutils2 changes lost before the merge of packaging.
wrap_text was removed in favor of standard textwrap but the removal of the
function was lost in a bad merge; a change in sdist mysteriously disappeared.
Éric Araujo [Tue, 31 May 2011 13:05:38 +0000 (15:05 +0200)]
Fix nonsensical name.
The code used “long” to refer to a long option (e.g. --quiet), which was
probably changed by 2to3 and not caught by the human operator, and then
changed to “integer” by me to avoid shadowing without seeing the real
obvious fix.
Tarek Ziade [Mon, 30 May 2011 10:07:49 +0000 (12:07 +0200)]
Cleaned up the installer output behavior.
This change also makes sure the logger handlers are not alterated after an
installation. That also fixes the remaining environment alteration issue in
test_packaging.
Nadeem Vawda [Sun, 29 May 2011 23:44:45 +0000 (01:44 +0200)]
Remove unused data from test_bz2.
DATA_CRLF was used to test BZ2File's universal newline logic, which was removed
in changeset ce63a5dcb0af. The tests themselves were removed in fbabdb0d7dd2.
Nadeem Vawda [Sun, 29 May 2011 23:12:24 +0000 (01:12 +0200)]
Miscellaneous cleanups to bz2 and test_bz2 following issue #1625.
* In bz2.decompress(), concatenate partial results in a way that should
be more friendly to other Python implementations
* Remove redundant comments in test_bz2
* Use 'while True:' instead of 'while 1:'
Ned Deily [Sun, 29 May 2011 09:16:36 +0000 (02:16 -0700)]
Null merge to record previous incorrecly merged changeset from 3.2 branch:
changeset: 70465:4f248dd34dd9
branch: 3.2
parent: 70463:7f2e3c466d57
user: Gregory P. Smith <greg@krypto.org>
date: Sat May 28 09:06:02 2011 -0700
files: Lib/test/test_subprocess.py
description:
Fix ProcessTestCasePOSIXPurePython to test the module from import when
changeset: 70466:2c91045d16a6
parent: 70464:2936e8f12e4f
user: Gregory P. Smith <greg@krypto.org>
date: Sat May 28 09:06:02 2011 -0700
files: Lib/test/test_subprocess.py
description:
Fix ProcessTestCasePOSIXPurePython to test the module from import when
Gregory P. Smith [Sat, 28 May 2011 17:00:14 +0000 (10:00 -0700)]
follow on to the last commit, remove the final POSIXPurePythonTestCase
reference. (the difference between running test_subprocess.py
directly rather than via regrtest.py)
Gregory P. Smith [Sat, 28 May 2011 16:32:39 +0000 (09:32 -0700)]
The _posixsubprocess module is now required on POSIX.
Remove the pure Python POSIX subprocess implementation.
If non-CPython VMs (are there any for 3.x yet?) were somehow depending
on this, they already have the exact same set of problems with Python
code being executed after os.fork() that _posixsubprocess was written
to deal with. They should implement an equivalent outside of Python.
Gregory P. Smith [Sat, 28 May 2011 16:06:02 +0000 (09:06 -0700)]
Fix ProcessTestCasePOSIXPurePython to test the module from import when
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact. This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.
Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore. This at least
tests it properly in this stable branch. The pure python code for
this is likely to be removed in 3.3.
Gregory P. Smith [Sat, 28 May 2011 16:06:02 +0000 (09:06 -0700)]
Fix ProcessTestCasePOSIXPurePython to test the module from import when
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact. This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.
Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore. This at least
tests it properly in this stable branch. The pure python code for
this is likely to be removed in 3.3.
Ned Deily [Sat, 28 May 2011 13:04:02 +0000 (06:04 -0700)]
Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
Ned Deily [Sat, 28 May 2011 12:59:55 +0000 (05:59 -0700)]
Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
Ned Deily [Sat, 28 May 2011 07:45:52 +0000 (00:45 -0700)]
Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
Ned Deily [Sat, 28 May 2011 07:36:12 +0000 (00:36 -0700)]
Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
Ned Deily [Sat, 28 May 2011 07:19:56 +0000 (00:19 -0700)]
Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
Victor Stinner [Fri, 27 May 2011 14:50:40 +0000 (16:50 +0200)]
Revert my commit 3555cf6f9c98: "Issue #8796: codecs.open() calls the builtin
open() function instead of using StreamReaderWriter. Deprecate StreamReader,
StreamWriter, StreamReaderWriter, StreamRecoder and EncodedFile() of the codec
module. Use the builtin open() function or io.TextIOWrapper instead."
"It has not been approved !" wrote Marc-Andre Lemburg.
Victor Stinner [Thu, 26 May 2011 23:51:18 +0000 (01:51 +0200)]
Issue #8796: codecs.open() calls the builtin open() function instead of using
StreamReaderWriter. Deprecate StreamReader, StreamWriter, StreamReaderWriter,
StreamRecoder and EncodedFile() of the codec module. Use the builtin open()
function or io.TextIOWrapper instead.