]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is enabled...
authorchgnrdv <52372310+chgnrdv@users.noreply.github.com>
Fri, 19 May 2023 19:25:51 +0000 (22:25 +0300)
committerGitHub <noreply@github.com>
Fri, 19 May 2023 19:25:51 +0000 (19:25 +0000)
Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled.

Lib/test/test_subprocess.py

index 3880125807f23572d2f18d6f67c57d2e301ffb5a..92f81eaafb1c93f69f8cf16a72267fad91da8208 100644 (file)
@@ -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."""