[Python-checkins] Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)

Gregory P. Smith webhook-mailer at python.org
Sun Dec 30 23:15:45 EST 2018


https://github.com/python/cpython/commit/d6f45b23a59de5782ba38d3c698da9c08aaca11b
commit: d6f45b23a59de5782ba38d3c698da9c08aaca11b
branch: master
author: Gregory P. Smith <greg at krypto.org>
committer: GitHub <noreply at github.com>
date: 2018-12-30T20:15:41-08:00
summary:

Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)

files:
M Lib/test/test_faulthandler.py

diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py
index 80b8868a0696..6aee22be2e03 100644
--- a/Lib/test/test_faulthandler.py
+++ b/Lib/test/test_faulthandler.py
@@ -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
 )
 
@@ -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:
@@ -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:



More information about the Python-checkins mailing list