Skip to content

Commit 5671246

Browse files
committed
also skip the test if AddressSanitizer is enabled
1 parent 9a25223 commit 5671246

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_subprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,9 @@ def is_env_var_to_ignore(n):
837837

838838
@unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') == 1,
839839
'The Python shared library cannot be loaded '
840-
'with an empty environment.')
840+
'without some system environments.')
841+
@unittest.skipIf(check_sanitizer(address=True),
842+
'AddressSanitizer adds to the environment.')
841843
def test_one_environment_variable(self):
842844
newenv = {'fruit': 'orange'}
843845
cmd = [sys.executable, '-c',

0 commit comments

Comments
 (0)