diff options
-rw-r--r-- | Lib/test/test_posix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index b94da3f45a..ecf3e93eb0 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1462,7 +1462,7 @@ class TestPosixSpawn(unittest.TestCase): """ pid = posix.posix_spawn(sys.executable, [sys.executable, '-c', script], - {'foo': 'bar'}) + {**os.environ, 'foo': 'bar'}) self.assertEqual(os.waitpid(pid, 0), (pid, 0)) with open(envfile) as f: self.assertEqual(f.read(), 'bar') |