File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -572,10 +572,14 @@ def work():
572572 output .put ((None , None , None , None ))
573573 return
574574 # -E is needed by some tests, e.g. test_import
575+ # Running the child from the same working directory ensures
576+ # that TEMPDIR for the child is the same when
577+ # sysconfig.is_python_build() is true. See issue 15300.
575578 popen = Popen (base_cmd + ['--slaveargs' , json .dumps (args_tuple )],
576579 stdout = PIPE , stderr = PIPE ,
577580 universal_newlines = True ,
578- close_fds = (os .name != 'nt' ))
581+ close_fds = (os .name != 'nt' ),
582+ cwd = support .SAVEDCWD )
579583 stdout , stderr = popen .communicate ()
580584 # Strip last refcount output line if it exists, since it
581585 # comes from the shutdown of the interpreter in the subcommand.
Original file line number Diff line number Diff line change @@ -458,6 +458,7 @@ Zbyszek Jędrzejewski-Szmek
458458Drew Jenkins
459459Flemming Kjær Jensen
460460MunSic Jeong
461+ Chris Jerdonek
461462Orjan Johansen
462463Fredrik Johansson
463464Gregory K. Johnson
Original file line number Diff line number Diff line change @@ -341,6 +341,10 @@ Extension Modules
341341Tests
342342-----
343343
344+ - Issue #15300: Ensure the temporary test working directories are in the same
345+ parent folder when running tests in multiprocess mode from a Python build.
346+ Patch by Chris Jerdonek.
347+
344348- test_nntplib now tolerates being run from behind NNTP gateways that add
345349 "X-Antivirus" headers to articles
346350
You can’t perform that action at this time.
0 commit comments