Skip to content

Commit 89e7979

Browse files
Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)
(cherry picked from commit d6f45b2) Co-authored-by: Gregory P. Smith <[email protected]>
1 parent d823443 commit 89e7979

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_faulthandler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
_cflags = sysconfig.get_config_var('CFLAGS') or ''
2424
_config_args = sysconfig.get_config_var('CONFIG_ARGS') or ''
2525
UB_SANITIZER = (
26-
'-fsanitizer=undefined' in _cflags or
26+
'-fsanitize=undefined' in _cflags or
2727
'--with-undefined-behavior-sanitizer' in _config_args
2828
)
2929
MEMORY_SANITIZER = (
30-
'-fsanitizer=memory' in _cflags or
30+
'-fsanitize=memory' in _cflags or
3131
'--with-memory-sanitizer' in _config_args
3232
)
3333

@@ -265,7 +265,7 @@ def test_gil_released(self):
265265
'Segmentation fault')
266266

267267
@unittest.skipIf(UB_SANITIZER or MEMORY_SANITIZER,
268-
"sanizer builds change crashing process output.")
268+
"sanitizer builds change crashing process output.")
269269
@skip_segfault_on_android
270270
def test_enable_file(self):
271271
with temporary_filename() as filename:
@@ -282,7 +282,7 @@ def test_enable_file(self):
282282
@unittest.skipIf(sys.platform == "win32",
283283
"subprocess doesn't support pass_fds on Windows")
284284
@unittest.skipIf(UB_SANITIZER or MEMORY_SANITIZER,
285-
"sanizer builds change crashing process output.")
285+
"sanitizer builds change crashing process output.")
286286
@skip_segfault_on_android
287287
def test_enable_fd(self):
288288
with tempfile.TemporaryFile('wb+') as fp:

0 commit comments

Comments
 (0)