mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Close #18754: Run Python child processes in isolated more in the test suite.
This commit is contained in:
parent
c2228c8995
commit
e8785ff82a
5 changed files with 27 additions and 8 deletions
|
@ -263,7 +263,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
path = path.encode("ascii", "backslashreplace")
|
||||
sys.stdout.buffer.write(path)"""
|
||||
rc1, out1, err1 = assert_python_ok('-c', code, PYTHONPATH="")
|
||||
rc2, out2, err2 = assert_python_ok('-c', code)
|
||||
rc2, out2, err2 = assert_python_ok('-c', code, __isolated=False)
|
||||
# regarding to Posix specification, outputs should be equal
|
||||
# for empty and unset PYTHONPATH
|
||||
self.assertEqual(out1, out2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue