cpython: 724a6e0e35f0 (original) (raw)
Mercurial > cpython
changeset 78062:724a6e0e35f0 3.2
Issue #15300: Ensure the temporary test working directories are in the same parent folder when running tests in multiprocess mode from a Python build. Patch by Chris Jerdonek. [#15300]
Antoine Pitrou solipsis@pitrou.net | |
---|---|
date | Wed, 11 Jul 2012 19:19:14 +0200 |
parents | 302df09a6aa8 |
children | 4752fafb579d f1a0823b7772 |
files | Lib/test/regrtest.py Misc/ACKS Misc/NEWS |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-)[+] [-] Lib/test/regrtest.py 6 Misc/ACKS 1 Misc/NEWS 4 |
line wrap: on
line diff
--- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -572,10 +572,14 @@ def main(tests=None, testdir=None, verbo output.put((None, None, None, None)) return # -E is needed by some tests, e.g. test_import
# Running the child from the same working directory ensures[](#l1.7)
# that TEMPDIR for the child is the same when[](#l1.8)
# sysconfig.is_python_build() is true. See issue 15300.[](#l1.9) popen = Popen(base_cmd + ['--slaveargs', json.dumps(args_tuple)],[](#l1.10) stdout=PIPE, stderr=PIPE,[](#l1.11) universal_newlines=True,[](#l1.12)
close_fds=(os.name != 'nt'))[](#l1.13)
close_fds=(os.name != 'nt'),[](#l1.14)
cwd=support.SAVEDCWD)[](#l1.15) stdout, stderr = popen.communicate()[](#l1.16) # Strip last refcount output line if it exists, since it[](#l1.17) # comes from the shutdown of the interpreter in the subcommand.[](#l1.18)
--- a/Misc/ACKS +++ b/Misc/ACKS @@ -458,6 +458,7 @@ Zbyszek Jędrzejewski-Szmek Drew Jenkins Flemming Kjær Jensen MunSic Jeong +Chris Jerdonek Orjan Johansen Fredrik Johansson Gregory K. Johnson
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -341,6 +341,10 @@ Extension Modules Tests ----- +- Issue #15300: Ensure the temporary test working directories are in the same