Éric Araujo [Fri, 3 Jun 2011 17:18:41 +0000 (19:18 +0200)]
Fix reST label for collections ABCs.
The previous markup hijacked the abstract-base-classes glossary entry,
which resulted in the HTML linking to collections.abc when defining the
generic ABC concept. Now the glossary links to the abc module.
Éric Araujo [Fri, 3 Jun 2011 15:28:23 +0000 (17:28 +0200)]
Document autoflushing in packaging.test.support.LoggingCatcher.get_logs.
I’m afraid my docstring is not as clear as it should be, but I can’t
find a concise way of describing what the code does. Suggestions for
improvements welcome.
Victor Stinner [Wed, 1 Jun 2011 11:19:07 +0000 (13:19 +0200)]
(Merge 3.2) Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes,
the file descriptor of a pipe closed in the parent process is valid in the
child process according to fstat(), but the mode of the file descriptor is
invalid, and read or write raise an error.
test.support.requires_mac_ver() is now a decorator, as suggested by Ezio
Melotti, and its docstring is fixed (linux_version => mac_ver).
Victor Stinner [Wed, 1 Jun 2011 11:13:04 +0000 (13:13 +0200)]
Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
descriptor of a pipe closed in the parent process is valid in the child process
according to fstat(), but the mode of the file descriptor is invalid, and read
or write raise an error.
Add also requires_mac_ver() decorator to test.support.
Victor Stinner [Tue, 31 May 2011 22:58:57 +0000 (00:58 +0200)]
(Merge 3.2) Close #12085: Fix an attribute error in subprocess.Popen destructor
if the constructor has failed, e.g. because of an undeclared keyword argument.
Patch written by Oleg Oshmyan.
Victor Stinner [Tue, 31 May 2011 22:57:47 +0000 (00:57 +0200)]
Close #12085: Fix an attribute error in subprocess.Popen destructor if the
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
Ralf Schmitt [Tue, 31 May 2011 22:10:03 +0000 (17:10 -0500)]
disable ASDLGEN if hg won't work, or if python is not installed.
This change makes configure check for
- the existence of a hg repository
- the hg executable itself
- the python executable
Running $(srcdir)/Parser/asdl_c.py (i.e. ASDLGEN) will fail if any of
the above prerequisites is missing, so we now disable it instead.
É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.
Victor Stinner [Mon, 30 May 2011 21:47:01 +0000 (23:47 +0200)]
(Merge 3.2) Issue #12016: my_fgets() now always clears errors before calling
fgets(). Fix the following case: sys.stdin.read() stopped with CTRL+d (end of
file), raw_input() interrupted by CTRL+c.
Victor Stinner [Mon, 30 May 2011 21:46:00 +0000 (23:46 +0200)]
Issue #12016: my_fgets() now always clears errors before calling fgets(). Fix
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.
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:'