summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2018-12-31 04:15:41 (GMT)
committerGitHub <noreply@github.com>2018-12-31 04:15:41 (GMT)
commitd6f45b23a59de5782ba38d3c698da9c08aaca11b (patch)
treec8f3baba99e5dc5225b443a06594e751f0dad357 /Lib
parent6f9bc72c79c3262e5d0f2c0e96b016477399cfb1 (diff)
downloadcpython-d6f45b23a59de5782ba38d3c698da9c08aaca11b.zip
cpython-d6f45b23a59de5782ba38d3c698da9c08aaca11b.tar.gz
cpython-d6f45b23a59de5782ba38d3c698da9c08aaca11b.tar.bz2
Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_faulthandler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py
index 80b8868..6aee22b 100644
--- a/Lib/test/test_faulthandler.py
+++ b/Lib/test/test_faulthandler.py
@@ -23,11 +23,11 @@ MS_WINDOWS = (os.name == 'nt')
_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
)
@@ -265,7 +265,7 @@ class FaultHandlerTests(unittest.TestCase):
'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:
@@ -282,7 +282,7 @@ class FaultHandlerTests(unittest.TestCase):
@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: