Skip to content

Commit 983ef0b

Browse files
committed
remove test_check_sanitizer_config_args
1 parent 80ab094 commit 983ef0b

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

‎Lib/test/test_support.py‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import textwrap
1818
import unittest
1919
import warnings
20-
from unittest import mock
2120

2221
from test import support
2322
from test.support import isolation
@@ -81,29 +80,6 @@ def tearDownClass(cls):
8180
)
8281
assert len(warnings._get_filters()) == orig_filter_len - 2
8382

84-
def test_check_sanitizer_config_args(self):
85-
sanitizers = (
86-
('address', 'address'),
87-
('hwaddress', 'hwaddress'),
88-
('memory', 'memory'),
89-
('undefined-behavior', 'ub'),
90-
('thread', 'thread'),
91-
)
92-
for option, keyword in sanitizers:
93-
for config_arg, expected in (
94-
(f'--with-{option}-sanitizer=no', False),
95-
(f'--without-{option}-sanitizer', False),
96-
(f'--with-{option}-sanitizer', True),
97-
(f'--with-{option}-sanitizer=yes', True),
98-
):
99-
with self.subTest(config_arg=config_arg):
100-
config = {'CFLAGS': '', 'CONFIG_ARGS': f"'{config_arg}'"}
101-
with mock.patch.object(sysconfig, 'get_config_var',
102-
side_effect=config.get):
103-
self.assertEqual(
104-
support.check_sanitizer(**{keyword: True}), expected
105-
)
106-
10783
def test_ignored_deprecations_are_silent(self):
10884
"""Test support.ignore_deprecations_from() silences warnings"""
10985
with warnings.catch_warnings(record=True) as warning_objs:

0 commit comments

Comments
 (0)