churchyard / rpms / python38

Forked from rpms/python38 5 years ago
Clone
0c391af
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
0c391af
index da0135b..1b27b5f 100644
0c391af
--- a/Lib/test/test_posix.py
0c391af
+++ b/Lib/test/test_posix.py
0c391af
@@ -1463,7 +1463,7 @@ class TestPosixSpawn(unittest.TestCase):
0c391af
         """
0c391af
         pid = posix.posix_spawn(sys.executable,
0c391af
                                 [sys.executable, '-c', script],
0c391af
-                                {'foo': 'bar'})
0c391af
+                                {**os.environ, 'foo': 'bar'})
0c391af
         self.assertEqual(os.waitpid(pid, 0), (pid, 0))
0c391af
         with open(envfile) as f:
0c391af
             self.assertEqual(f.read(), 'bar')