Kaydet (Commit) 41148462 authored tarafından Pablo Galindo's avatar Pablo Galindo Kaydeden (comit) Victor Stinner

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
üst df826f36
......@@ -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 = (
......
Fix ``test_embed.test_pre_initialization_sys_options()`` when the interpreter
is built with ``--enable-shared``.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment