mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
625887e6df
commit
c3f43bfb4b
|
@ -1,6 +1,7 @@
|
||||||
import unittest
|
import unittest
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
from test import support
|
from test import support
|
||||||
|
from test.support import check_sanitizer
|
||||||
from test.support import import_helper
|
from test.support import import_helper
|
||||||
from test.support import os_helper
|
from test.support import os_helper
|
||||||
from test.support import warnings_helper
|
from test.support import warnings_helper
|
||||||
|
@ -790,6 +791,8 @@ class ProcessTestCase(BaseTestCase):
|
||||||
@unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') == 1,
|
@unittest.skipIf(sysconfig.get_config_var('Py_ENABLE_SHARED') == 1,
|
||||||
'The Python shared library cannot be loaded '
|
'The Python shared library cannot be loaded '
|
||||||
'with an empty environment.')
|
'with an empty environment.')
|
||||||
|
@unittest.skipIf(check_sanitizer(address=True),
|
||||||
|
'AddressSanitizer adds to the environment.')
|
||||||
def test_empty_env(self):
|
def test_empty_env(self):
|
||||||
"""Verify that env={} is as empty as possible."""
|
"""Verify that env={} is as empty as possible."""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue