Skip to content

Commit

Permalink
pythongh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env…
Browse files Browse the repository at this point in the history
…` if ASAN is enabled (pythonGH-104667)

Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled.
(cherry picked from commit c3f43bf)

Co-authored-by: chgnrdv <[email protected]>
  • Loading branch information
chgnrdv authored and miss-islington committed May 19, 2023
1 parent f48a96a commit 7ba3f68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_subprocess.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -774,6 +775,8 @@ def test_env(self):
@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."""

Expand Down

0 comments on commit 7ba3f68

Please sign in to comment.