diff options
author | chgnrdv <52372310+chgnrdv@users.noreply.github.com> | 2023-05-19 19:25:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 19:25:51 (GMT) |
commit | c3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af (patch) | |
tree | af36a68c8f7bc8a2dce1be3c4478aad67783a99b | |
parent | 625887e6df5dbebe48be172b424ba519e2ba2ddc (diff) | |
download | cpython-c3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af.zip cpython-c3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af.tar.gz cpython-c3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 3880125..92f81ea 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 @@ -790,6 +791,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.""" |