Skip to content

Commit c3f43bf

Browse files
authored
gh-104472: Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled (#104667)
Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled.
1 parent 625887e commit c3f43bf

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
@@ -790,6 +791,8 @@ def test_env(self):
790791
@unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') == 1,
791792
'The Python shared library cannot be loaded '
792793
'with an empty environment.')
794+
@unittest.skipIf(check_sanitizer(address=True),
795+
'AddressSanitizer adds to the environment.')
793796
def test_empty_env(self):
794797
"""Verify that env={} is as empty as possible."""
795798

0 commit comments

Comments
 (0)