summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge issue #12352: Fix a deadlock in multiprocessing.Heap when a block isCharles-François Natali2011-07-023-6/+60
| |\ | | | | | | | | | freed by the garbage collector while the Heap lock is held.
| | * Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed byCharles-François Natali2011-07-023-6/+60
| | | | | | | | | | | | the garbage collector while the Heap lock is held.
* | | merge #11873: another try at fixing the regex, courtesy of Victor StinnerR David Murray2011-07-011-1/+1
|\ \ \ | |/ /
| * | #11873: another try at fixing the regex, courtesy of Victor StinnerR David Murray2011-07-011-1/+1
| | |
* | | merge #11873: fix test regex so it covers windows os.sep as well.R David Murray2011-07-011-1/+1
|\ \ \ | |/ /
| * | #11873: fix test regex so it covers windows os.sep as well.R David Murray2011-07-011-1/+1
| | |
* | | (merge 3.2) Issue #12363: increase the timeout of siginterrupt() testsVictor Stinner2011-07-011-4/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | 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).
| * | Issue #12363: increase the timeout of siginterrupt() testsVictor Stinner2011-07-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | (null merge 3.2, patch already applied to 3.3)Victor Stinner2011-07-010-0/+0
|\ \ \ | |/ /
| * | Issue #12363: improve siginterrupt() testsVictor Stinner2011-07-011-89/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
* | | (merge 3.2) Issue #11870: Skip test_threading.test_2_join_in_forked_process()Victor Stinner2011-07-011-14/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | 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.
| * | Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platformsVictor Stinner2011-07-011-14/+11
| | | | | | | | | | | | | | | | | | | | | with known OS bugs Share the list of platforms with known OS bugs with other tests. Patch written by Charles-François Natali.
* | | Issue #12462: time.sleep() now calls immediatly the (Python) signal handler ifVictor Stinner2011-07-012-6/+15
| | | | | | | | | | | | | | | | | | | | | it is interrupted by a signal, instead of having to wait until the next instruction. Patch reviewed by Antoine Pitrou.
* | | Issue #12442: add shutil.disk_usage()Giampaolo Rodola'2011-07-016-1/+77
| | |
* | | (merge 3.2) test_os: remove now useless TemporaryFileTests testcaseVictor Stinner2011-07-011-111/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | 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).
| * | test_os: remove now useless TemporaryFileTests testcaseVictor Stinner2011-07-011-111/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | (merge 3.2) libpython.py (gdb) now catchs IOError in py-list and py-bt commandsVictor Stinner2011-07-011-4/+18
|\ \ \ | |/ / | | | | | | | | | py-list displays the error. py-bt ignores the error (the filename and line number is already displayed).
| * | libpython.py (gdb) now catchs IOError in py-list and py-bt commandsVictor Stinner2011-07-011-4/+18
| | | | | | | | | | | | | | | py-list displays the error. py-bt ignores the error (the filename and line number is already displayed).
* | | (merge 3.2) test_os: add TemporaryFileTests to the testcase listVictor Stinner2011-07-011-0/+1
|\ \ \ | |/ / | | | | | | The testcase was never executed, it's now fixed.
| * | test_os: add TemporaryFileTests to the testcase listVictor Stinner2011-07-011-0/+1
| | | | | | | | | | | | The testcase was never executed, it's now fixed.
* | | Issue #12451: Add support.create_empty_file()Victor Stinner2011-06-3017-53/+50
| | | | | | | | | | | | | | | | | | | | | 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).
* | | Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.Antoine Pitrou2011-06-302-0/+5
|\ \ \ | |/ /
| * | Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.Antoine Pitrou2011-06-302-0/+5
| | |
* | | Issue 12139: ftplib - remove 'post CCC' test to fix various buildot failures ↵Giampaolo Rodola'2011-06-301-2/+0
| | | | | | | | | | | | due to dummy test server not properly handling SSL shutdown(), see http://bugs.python.org/msg139499
* | | Issue #12451: Open the test file in binary mode in test_bz2, the text file isVictor Stinner2011-06-301-1/+1
| | | | | | | | | | | | not needed.
* | | (merge 3.2) Issue #12451: Open files in binary mode in some tests when the textVictor Stinner2011-06-305-18/+16
|\ \ \ | |/ / | | | | | | | | | | | | file is not needed. Remove also an unused variable (blank) in test_threading.
| * | Issue #12451: Open files in binary mode in some tests when the text file is notVictor Stinner2011-06-305-18/+16
| | | | | | | | | | | | | | | | | | needed. Remove also an unused variable (blank) in test_threading.
* | | (merge 3.2) Issue #12451: The XInclude default loader of xml.etree now decodesVictor Stinner2011-06-302-4/+10
|\ \ \ | |/ / | | | | | | | | | | | | 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.
| * | Issue #12451: The XInclude default loader of xml.etree now decodes files fromVictor Stinner2011-06-302-4/+10
| | | | | | | | | | | | | | | | | | 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.
* | | (merge 3.2) Issue #12451: doctest.debug_script() doesn't create a temporaryVictor Stinner2011-06-302-36/+26
|\ \ \ | |/ / | | | | | | | | | | | | | | | file anymore to avoid encoding issues (it used the locale encoding, whereas UTF-8 should be). Remove also an unused import (warnings).
| * | Issue #12451: doctest.debug_script() doesn't create a temporary file anymore toVictor Stinner2011-06-302-36/+26
| | | | | | | | | | | | | | | | | | avoid encoding issues (it used the locale encoding, whereas UTF-8 should be). Remove also an unused import (warnings).
* | | (merge 3.2) Issue #12451: pydoc.synopsis() now reads the encoding cookie ifVictor Stinner2011-06-303-5/+20
|\ \ \ | |/ / | | | | | | available, to read the Python script from the right encoding.
| * | Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, toVictor Stinner2011-06-303-5/+20
| | | | | | | | | | | | read the Python script from the right encoding.
* | | (merge 3.2) Issue #12451: distutils now opens the setup script in binary modeVictor Stinner2011-06-302-5/+6
|\ \ \ | |/ / | | | | | | to read the encoding cookie, instead of opening it in UTF-8.
| * | Issue #12451: distutils now opens the setup script in binary mode to read theVictor Stinner2011-06-302-5/+6
| | | | | | | | | | | | encoding cookie, instead of opening it in UTF-8.
* | | merge headsBenjamin Peterson2011-06-301-10/+13
|\ \ \
| * | | Issue #12400: test_cprofile now restores correctly the previous sys.stderrVictor Stinner2011-06-291-10/+13
| | | | | | | | | | | | | | | | Copy sys.stderr before replacing it, instead of using sys.__stderr__
* | | | store the current scope on the stack right awayBenjamin Peterson2011-06-301-21/+18
|/ / /
* | | faulthandler: add missing include, pthread.h, for FreeBSD 6Victor Stinner2011-06-291-0/+4
| | |
* | | Issue #12400: test_faulthandler now uses sys.__stderr__Victor Stinner2011-06-291-5/+1
| | | | | | | | | | | | instead of open(os.devnull, 'w')
* | | remove VISIT_*_IN_BLOCK macrosBenjamin Peterson2011-06-291-41/+10
| | | | | | | | | | | | | | | These are pointless because on error, all blocks will be finalized by symtable_dealloc.
* | | (merge 3.2) Issue #12400: regrtest.runtest() uses stream.seek(0) before ↵Victor Stinner2011-06-291-3/+6
|\ \ \ | |/ / | | | | | | | | | | | | .truncate() .truncate(0) doesn't rewind.
| * | Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()Victor Stinner2011-06-291-3/+6
| | | | | | | | | | | | .truncate(0) doesn't rewind.
* | | (merge 3.2) Issue #12400: test_zipimport_support doesn't restore originalVictor Stinner2011-06-291-19/+12
|\ \ \ | |/ / | | | | | | | | | | | | sys.stdout anymore regrtest doesn't check that a test doesn't output anything anymore.
| * | Issue #12400: test_zipimport_support doesn't restore original sys.stdoutVictor Stinner2011-06-291-19/+12
| | | | | | | | | | | | | | | | | | anymore regrtest doesn't check that a test doesn't output anything anymore.
* | | (merge 3.2) Issue #12400: runtest() truncates the StringIO stream before a newVictor Stinner2011-06-291-0/+1
|\ \ \ | |/ / | | | | | | test
| * | Issue #12400: runtest() truncates the StringIO stream before a new testVictor Stinner2011-06-291-0/+1
| | |
* | | (merge 3.2) Issue #12400: Add missing import (os) to test_kqueueVictor Stinner2011-06-291-2/+3
|\ \ \ | |/ /
| * | Issue #12400: Add missing import (os) to test_kqueueVictor Stinner2011-06-291-2/+3
| | |
* | | Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymoreVictor Stinner2011-06-291-10/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | 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.