mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
[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 c3f43bfb4b
)
Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>
This commit is contained in:
parent
e5b6f38df4
commit
2801b3f8f7
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
@ -789,6 +790,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."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue