Skip to content

Commit 9a25223

Browse files
committed
skip some test in test_subprocess when python is configured with shared
1 parent 6788414 commit 9a25223

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_subprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ def is_env_var_to_ignore(n):
835835
if not is_env_var_to_ignore(k)]
836836
self.assertEqual(child_env_names, [])
837837

838+
@unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') == 1,
839+
'The Python shared library cannot be loaded '
840+
'with an empty environment.')
838841
def test_one_environment_variable(self):
839842
newenv = {'fruit': 'orange'}
840843
cmd = [sys.executable, '-c',

0 commit comments

Comments
 (0)