Skip to content

Commit 2801b3f

Browse files
[3.11] gh-104472: Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled (GH-104667) (#104673)
gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is enabled (GH-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 e5b6f38 commit 2801b3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

0 commit comments

Comments
 (0)