Kaydet (Commit) 673eb6a0 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Issue #15300: Ensure the temporary test working directories are in the same…

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.
...@@ -634,10 +634,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, ...@@ -634,10 +634,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
output.put((None, None, None, None)) output.put((None, None, None, None))
return return
# -E is needed by some tests, e.g. test_import # -E is needed by some tests, e.g. test_import
# Running the child from the same working directory ensures
# that TEMPDIR for the child is the same when
# sysconfig.is_python_build() is true. See issue 15300.
popen = Popen(base_cmd + ['--slaveargs', json.dumps(args_tuple)], popen = Popen(base_cmd + ['--slaveargs', json.dumps(args_tuple)],
stdout=PIPE, stderr=PIPE, stdout=PIPE, stderr=PIPE,
universal_newlines=True, universal_newlines=True,
close_fds=(os.name != 'nt')) close_fds=(os.name != 'nt'),
cwd=support.SAVEDCWD)
stdout, stderr = popen.communicate() stdout, stderr = popen.communicate()
retcode = popen.wait() retcode = popen.wait()
# Strip last refcount output line if it exists, since it # Strip last refcount output line if it exists, since it
......
...@@ -505,6 +505,7 @@ Julien Jehannet ...@@ -505,6 +505,7 @@ Julien Jehannet
Drew Jenkins Drew Jenkins
Flemming Kjær Jensen Flemming Kjær Jensen
MunSic Jeong MunSic Jeong
Chris Jerdonek
Jim Jewett Jim Jewett
Orjan Johansen Orjan Johansen
Fredrik Johansson Fredrik Johansson
......
...@@ -121,6 +121,10 @@ Documentation ...@@ -121,6 +121,10 @@ Documentation
Tests Tests
----- -----
- 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.
- Issue #15284: Skip {send,recv}msg tests in test_socket when IPv6 is not - Issue #15284: Skip {send,recv}msg tests in test_socket when IPv6 is not
enabled. Patch by Brian Brazil. enabled. Patch by Brian Brazil.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment