Georg Brandl [Sat, 9 Jul 2011 08:56:06 +0000 (10:56 +0200)]
Post-release steps for 3.2.1.
Georg Brandl [Sat, 9 Jul 2011 06:56:41 +0000 (08:56 +0200)]
Added tag v3.2.1 for changeset
ac1f7e5c0510
Georg Brandl [Sat, 9 Jul 2011 06:56:21 +0000 (08:56 +0200)]
Bump version to 3.2.1.
Antoine Pitrou [Sat, 9 Jul 2011 00:31:24 +0000 (02:31 +0200)]
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.
Should fix a buildbot failure.
Antoine Pitrou [Fri, 8 Jul 2011 17:19:57 +0000 (19:19 +0200)]
Avoid failing in test_urllibnet.test_bad_address when some overzealous
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
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.
Senthil Kumaran [Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)]
Fix closes issue issue12470 - check for utime for the skipUnless condition.
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.
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.
Georg Brandl [Sun, 3 Jul 2011 09:54:09 +0000 (11:54 +0200)]
Added tag v3.2.1rc2 for changeset
5df549718fb4
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:23:20 +0000 (09:23 +0200)]
Regenerate configure.
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.
closes #12225
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.
Vinay Sajip [Sat, 2 Jul 2011 16:21:37 +0000 (17:21 +0100)]
Removed some unused local variables.
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.
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: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: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: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: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: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: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: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:56:15 +0000 (02:56 +0200)]
test_os: add TemporaryFileTests to the testcase list
The testcase was never executed, it's now fixed.
Antoine Pitrou [Thu, 30 Jun 2011 18:02:54 +0000 (20:02 +0200)]
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
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: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: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: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: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.
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: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: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:02 +0000 (17:20 +0200)]
Issue #12400: Add missing import (os) to test_kqueue
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: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: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: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:24:28 +0000 (13:24 +0200)]
Issue #12400: remove unused variable
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.
Ned Deily [Wed, 29 Jun 2011 03:19:36 +0000 (20:19 -0700)]
Merge 3.2
Ned Deily [Wed, 29 Jun 2011 02:51:30 +0000 (19:51 -0700)]
Issue #9516: Update Misc/NEWS.
Benjamin Peterson [Wed, 29 Jun 2011 02:49:40 +0000 (21:49 -0500)]
merge 3.1
Ned Deily [Wed, 29 Jun 2011 02:44:24 +0000 (19:44 -0700)]
Issue #9516: Change distutils to no longer globally attempt to check and
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process
on OS X. This could cause failures in non-distutils subprocesses and was
unreliable since tests or user programs could modify the interpreter
environment after distutils set it. Instead, have distutils set the
the deployment target only in the environment of each build subprocess.
Continue to use the previous algorithm for deriving the deployment target
value:
if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env:
use the interpreter build configure MACOSX_DEPLOYMENT_TARGET
elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value:
use the env MACOSX_DEPLOYMENT_TARGET
else: # env value less than interpreter build configure value
raise exception
This allows building extensions that can only run on newer versions of
the OS than the version python was built for, for example with a python
built for 10.3 or later and an extension that needs to be built for 10.5.
Ned Deily [Wed, 29 Jun 2011 02:43:15 +0000 (19:43 -0700)]
Issue #9516: Correct and expand OS X deployment target tests in distutils
test_build_ext.
Ned Deily [Tue, 28 Jun 2011 07:42:50 +0000 (00:42 -0700)]
Issue #12141: Install a copy of template C module file so that
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
Ned Deily [Tue, 28 Jun 2011 07:00:28 +0000 (00:00 -0700)]
Issue #8746: Correct faulty configure checks so that os.chflags() and
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
Ned Deily [Tue, 28 Jun 2011 06:12:20 +0000 (23:12 -0700)]
Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
on Mac OS X. (Patch by Ronald Oussoren)
Benjamin Peterson [Mon, 27 Jun 2011 22:51:18 +0000 (17:51 -0500)]
fix ws
Benjamin Peterson [Mon, 27 Jun 2011 22:46:06 +0000 (17:46 -0500)]
add more ast tests (closes #11302)
A patch from Vincent Legoll.
Senthil Kumaran [Mon, 27 Jun 2011 16:06:45 +0000 (09:06 -0700)]
Fix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray object.
Benjamin Peterson [Mon, 27 Jun 2011 14:18:46 +0000 (09:18 -0500)]
strip trailing ws
Benjamin Peterson [Mon, 27 Jun 2011 14:16:14 +0000 (09:16 -0500)]
merge heads
Benjamin Peterson [Mon, 27 Jun 2011 14:14:34 +0000 (09:14 -0500)]
update profile license (closes #12417)
Benjamin Peterson [Mon, 27 Jun 2011 14:14:34 +0000 (09:14 -0500)]
update profile license (closes #12417)
Senthil Kumaran [Mon, 27 Jun 2011 06:48:23 +0000 (23:48 -0700)]
Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior.
Raymond Hettinger [Sun, 26 Jun 2011 13:29:06 +0000 (15:29 +0200)]
Issue #8890: Remove /tmp from examples.
Raymond Hettinger [Sun, 26 Jun 2011 12:29:35 +0000 (14:29 +0200)]
Issue #4608: urllib.request.urlopen does not return an iterable object
Ezio Melotti [Sun, 26 Jun 2011 10:34:56 +0000 (13:34 +0300)]
#11363: add missing functions from curses doc. Patch by Sandro Tosi.
Ezio Melotti [Sun, 26 Jun 2011 10:38:11 +0000 (13:38 +0300)]
#11363: clean up curses doc.
Ezio Melotti [Sun, 26 Jun 2011 08:25:28 +0000 (11:25 +0300)]
#11669: rephrase footnote in the Compound Statements page.
Ezio Melotti [Sat, 25 Jun 2011 16:40:06 +0000 (19:40 +0300)]
Use correct markup in zipimport.rst. Patch by Sara Magliacane.
Raymond Hettinger [Sat, 25 Jun 2011 15:20:21 +0000 (17:20 +0200)]
Issue 11802: filecmp cache was growing without bound.
Raymond Hettinger [Sat, 25 Jun 2011 14:30:39 +0000 (16:30 +0200)]
Issue 12086: add example showing how to use name mangling.
Raymond Hettinger [Sat, 25 Jun 2011 13:00:14 +0000 (15:00 +0200)]
Issue 11889: Clarify docs for enumerate.
Mark Dickinson [Sat, 25 Jun 2011 11:29:14 +0000 (13:29 +0200)]
Issue #12408: Fix relative import in test_future5.py. Thanks Cesare Di Mauro.
Mark Dickinson [Sat, 25 Jun 2011 10:04:08 +0000 (12:04 +0200)]
Merge #12228
Mark Dickinson [Sat, 25 Jun 2011 10:03:33 +0000 (12:03 +0200)]
Issue #12228: Fix exchanged flag descriptions in stat.rst. Thanks Sandro Tosi.
Raymond Hettinger [Sat, 25 Jun 2011 09:50:00 +0000 (11:50 +0200)]
merge
Raymond Hettinger [Sat, 25 Jun 2011 09:39:00 +0000 (11:39 +0200)]
Fix typo (reported by Hiro Ashiya).
Ezio Melotti [Sat, 25 Jun 2011 09:36:38 +0000 (12:36 +0300)]
#12341: add coverage files/dirs to .hgignore. Patch by Sandro Tosi.
Raymond Hettinger [Sat, 25 Jun 2011 09:30:53 +0000 (11:30 +0200)]
Code simplification suggested by Sven Marnach.
Ross Lagerwall [Sat, 25 Jun 2011 08:02:37 +0000 (10:02 +0200)]
Issue 12404: Remove C89 incompatible code from mmap module.
Patch by Akira Kitada.
R David Murray [Fri, 24 Jun 2011 17:26:31 +0000 (13:26 -0400)]
#10206: add test for previously fixed bug.
Patch by Francisco Martín Brugué.
R David Murray [Fri, 24 Jun 2011 01:26:13 +0000 (21:26 -0400)]
#9921: clarify os.path.join joining algorithm
The new wording is based on the comments in the code, which
match the actual behavior.
Victor Stinner [Thu, 23 Jun 2011 12:22:28 +0000 (14:22 +0200)]
Issue #11223: skip also test_rlock_acquire_interruption() on FreeBSD6
Victor Stinner [Thu, 23 Jun 2011 09:57:56 +0000 (11:57 +0200)]
Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6
Locks are implemented using a mutex and a condition variable of the pthread
library on FreeBSD6. POSIX condition variables cannot be interrupted by signals
(see pthread_cond_wait manual page).
Victor Stinner [Wed, 22 Jun 2011 23:02:25 +0000 (01:02 +0200)]
Issue #12383: skip test_empty_env() of subprocess on Windows
Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.
Victor Stinner [Wed, 22 Jun 2011 19:28:43 +0000 (21:28 +0200)]
Issue #12383: fix test_empty_env() of subprocess on Mac OS X
Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.
Victor Stinner [Tue, 21 Jun 2011 19:59:06 +0000 (21:59 +0200)]
Issue #12383: skip test_empty_env() if compiled is compiled in shared mode
Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.
Victor Stinner [Tue, 21 Jun 2011 15:18:38 +0000 (17:18 +0200)]
Close #12383: Fix subprocess module with env={}: don't copy the environment
variables, start with an empty environment.
Benjamin Peterson [Tue, 21 Jun 2011 03:09:13 +0000 (22:09 -0500)]
fix indentation
Benjamin Peterson [Tue, 21 Jun 2011 02:40:34 +0000 (21:40 -0500)]
merge heads
Benjamin Peterson [Tue, 21 Jun 2011 02:40:19 +0000 (21:40 -0500)]
fix indentation
Victor Stinner [Mon, 20 Jun 2011 15:53:35 +0000 (17:53 +0200)]
Issue #12285: multiprocessing.Pool() raises a ValueError if the number of
processes if negative or null.
Senthil Kumaran [Mon, 20 Jun 2011 14:30:34 +0000 (07:30 -0700)]
Fix closes Issue12359 - Removing a confusing sentence from the previous change.
Senthil Kumaran [Mon, 20 Jun 2011 01:22:33 +0000 (18:22 -0700)]
Fix closes issue 12360 - correcting parameter names in asyncore documentation.
Senthil Kumaran [Mon, 20 Jun 2011 00:41:33 +0000 (17:41 -0700)]
minor space nit.
Senthil Kumaran [Mon, 20 Jun 2011 00:37:06 +0000 (17:37 -0700)]
Fix closes Issue12359 - Minor update to module import description.
Senthil Kumaran [Sun, 19 Jun 2011 23:59:41 +0000 (16:59 -0700)]
Whitespace nit fixed using reident.
Senthil Kumaran [Sun, 19 Jun 2011 23:56:49 +0000 (16:56 -0700)]
Fix closes Issue12315 - Updates to http.client documentation.
Benjamin Peterson [Sun, 19 Jun 2011 22:49:13 +0000 (17:49 -0500)]
fix uglyNamingConvention
Senthil Kumaran [Sun, 19 Jun 2011 20:55:48 +0000 (13:55 -0700)]
merge from 3.1 for issue issue12261.