Skip to content

Commit

Permalink
Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Dec 31, 2018
1 parent 6f9bc72 commit d6f45b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lib/test/test_faulthandler.py
Expand Up @@ -23,11 +23,11 @@
_cflags = sysconfig.get_config_var('CFLAGS') or ''
_config_args = sysconfig.get_config_var('CONFIG_ARGS') or ''
UB_SANITIZER = (
'-fsanitizer=undefined' in _cflags or
'-fsanitize=undefined' in _cflags or
'--with-undefined-behavior-sanitizer' in _config_args
)
MEMORY_SANITIZER = (
'-fsanitizer=memory' in _cflags or
'-fsanitize=memory' in _cflags or
'--with-memory-sanitizer' in _config_args
)

Expand Down Expand Up @@ -265,7 +265,7 @@ def test_gil_released(self):
'Segmentation fault')

@unittest.skipIf(UB_SANITIZER or MEMORY_SANITIZER,
"sanizer builds change crashing process output.")
"sanitizer builds change crashing process output.")
@skip_segfault_on_android
def test_enable_file(self):
with temporary_filename() as filename:
Expand All @@ -282,7 +282,7 @@ def test_enable_file(self):
@unittest.skipIf(sys.platform == "win32",
"subprocess doesn't support pass_fds on Windows")
@unittest.skipIf(UB_SANITIZER or MEMORY_SANITIZER,
"sanizer builds change crashing process output.")
"sanitizer builds change crashing process output.")
@skip_segfault_on_android
def test_enable_fd(self):
with tempfile.TemporaryFile('wb+') as fp:
Expand Down

0 comments on commit d6f45b2

Please sign in to comment.