- 02 Jul, 2011 3 commits
-
-
Vinay Sajip authored
-
Charles-François Natali authored
freed by the garbage collector while the Heap lock is held.
-
Charles-François Natali authored
the garbage collector while the Heap lock is held.
-
- 01 Jul, 2011 8 commits
-
-
R David Murray authored
-
R David Murray authored
-
Victor Stinner authored
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 authored
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 authored
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 authored
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 authored
py-list displays the error. py-bt ignores the error (the filename and line number is already displayed).
-
Victor Stinner authored
The testcase was never executed, it's now fixed.
-
- 30 Jun, 2011 6 commits
-
-
Antoine Pitrou authored
-
Victor Stinner authored
needed. Remove also an unused variable (blank) in test_threading.
-
Victor Stinner authored
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 authored
avoid encoding issues (it used the locale encoding, whereas UTF-8 should be). Remove also an unused import (warnings).
-
Victor Stinner authored
read the Python script from the right encoding.
-
Victor Stinner authored
encoding cookie, instead of opening it in UTF-8.
-
- 29 Jun, 2011 15 commits
-
-
Victor Stinner authored
.truncate(0) doesn't rewind.
-
Victor Stinner authored
anymore regrtest doesn't check that a test doesn't output anything anymore.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
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 authored
If verbose is False, the output is empty. Fix also a typo in a variable name.
-
Victor Stinner authored
* Don't force verbose to True with option -W * Rename rerun_failed variable to output_on_failure
-
Victor Stinner authored
a io.StringIO object by regrtest (which has no file descriptor).
-
Victor Stinner authored
-
Victor Stinner authored
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 authored
-
Ned Deily authored
-
Benjamin Peterson authored
-
Ned Deily authored
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 authored
test_build_ext.
-
- 28 Jun, 2011 3 commits
-
-
Ned Deily authored
test_build_ext of test_distutils is no longer silently skipped when run outside of a build directory.
-
Ned Deily authored
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 authored
on Mac OS X. (Patch by Ronald Oussoren)
-
- 27 Jun, 2011 5 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
A patch from Vincent Legoll.
-
Senthil Kumaran authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-