diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2018-04-27 12:23:13 (GMT) |
|---|---|---|
| committer | Victor Stinner <vstinner@redhat.com> | 2018-04-27 12:23:13 (GMT) |
| commit | 4114846265536344538ae44cb8ffd8ce2903faf7 (patch) | |
| tree | 1c99fdf716bcfcf5a8bd8f39549ef833d2e72850 /Lib/test | |
| parent | df826f36e081211ef645a9025b60c4d84abb5419 (diff) | |
| download | cpython-4114846265536344538ae44cb8ffd8ce2903faf7.zip cpython-4114846265536344538ae44cb8ffd8ce2903faf7.tar.gz cpython-4114846265536344538ae44cb8ffd8ce2903faf7.tar.bz2 | |
bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
Fix test_embed.test_pre_initialization_sys_options() when building with --enable-shared
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_embed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index f926301..c52cb99 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -208,7 +208,7 @@ class EmbeddingTests(unittest.TestCase): Checks that sys.warnoptions and sys._xoptions can be set before the runtime is initialized (otherwise they won't be effective). """ - env = dict(PYTHONPATH=os.pathsep.join(sys.path)) + env = dict(os.environ, PYTHONPATH=os.pathsep.join(sys.path)) out, err = self.run_embedded_interpreter( "pre_initialization_sys_options", env=env) expected_output = ( |
