summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-05-19 21:22:44 (GMT)
committerGitHub <noreply@github.com>2023-05-19 21:22:44 (GMT)
commitf9d2a109bb9a477f79639c0459d32f1c38c67cce (patch)
treeaa1b5645679325bd823577f6696a0859a57912be /Lib
parentf48a96a28012d28ae37a2f4587a780a5eb779946 (diff)
downloadcpython-f9d2a109bb9a477f79639c0459d32f1c38c67cce.zip
cpython-f9d2a109bb9a477f79639c0459d32f1c38c67cce.tar.gz
cpython-f9d2a109bb9a477f79639c0459d32f1c38c67cce.tar.bz2
[3.10] gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is enabled (GH-104667) (#104669)
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 c3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af) Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 52540ac..139ef41 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1,6 +1,7 @@
import unittest
from unittest import mock
from test import support
+from test.support import check_sanitizer
from test.support import import_helper
from test.support import os_helper
from test.support import warnings_helper
@@ -774,6 +775,8 @@ class ProcessTestCase(BaseTestCase):
@unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') == 1,
'The Python shared library cannot be loaded '
'with an empty environment.')
+ @unittest.skipIf(check_sanitizer(address=True),
+ 'AddressSanitizer adds to the environment.')
def test_empty_env(self):
"""Verify that env={} is as empty as possible."""