Skip to content

Commit 7ba3f68

Browse files
chgnrdvmiss-islington
authored andcommitted
pythongh-104472: Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled (pythonGH-104667)
Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled. (cherry picked from commit c3f43bf) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
1 parent f48a96a commit 7ba3f68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_subprocess.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import unittest
22
from unittest import mock
33
from test import support
4+
from test.support import check_sanitizer
45
from test.support import import_helper
56
from test.support import os_helper
67
from test.support import warnings_helper
@@ -774,6 +775,8 @@ def test_env(self):
774775
@unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') == 1,
775776
'The Python shared library cannot be loaded '
776777
'with an empty environment.')
778+
@unittest.skipIf(check_sanitizer(address=True),
779+
'AddressSanitizer adds to the environment.')
777780
def test_empty_env(self):
778781
"""Verify that env={} is as empty as possible."""
779782

0 commit comments

Comments
 (0)