mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
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
(cherry picked from commit 4114846265
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
291c9d4f74
commit
dd3ede7537
2 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,7 @@ class EmbeddingTests(unittest.TestCase):
|
||||||
Checks that sys.warnoptions and sys._xoptions can be set before the
|
Checks that sys.warnoptions and sys._xoptions can be set before the
|
||||||
runtime is initialized (otherwise they won't be effective).
|
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(
|
out, err = self.run_embedded_interpreter(
|
||||||
"pre_initialization_sys_options", env=env)
|
"pre_initialization_sys_options", env=env)
|
||||||
expected_output = (
|
expected_output = (
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Fix ``test_embed.test_pre_initialization_sys_options()`` when the interpreter
|
||||||
|
is built with ``--enable-shared``.
|
Loading…
Add table
Add a link
Reference in a new issue