23
23
_cflags = sysconfig .get_config_var ('CFLAGS' ) or ''
24
24
_config_args = sysconfig .get_config_var ('CONFIG_ARGS' ) or ''
25
25
UB_SANITIZER = (
26
- '-fsanitizer =undefined' in _cflags or
26
+ '-fsanitize =undefined' in _cflags or
27
27
'--with-undefined-behavior-sanitizer' in _config_args
28
28
)
29
29
MEMORY_SANITIZER = (
30
- '-fsanitizer =memory' in _cflags or
30
+ '-fsanitize =memory' in _cflags or
31
31
'--with-memory-sanitizer' in _config_args
32
32
)
33
33
@@ -265,7 +265,7 @@ def test_gil_released(self):
265
265
'Segmentation fault' )
266
266
267
267
@unittest .skipIf (UB_SANITIZER or MEMORY_SANITIZER ,
268
- "sanizer builds change crashing process output." )
268
+ "sanitizer builds change crashing process output." )
269
269
@skip_segfault_on_android
270
270
def test_enable_file (self ):
271
271
with temporary_filename () as filename :
@@ -282,7 +282,7 @@ def test_enable_file(self):
282
282
@unittest .skipIf (sys .platform == "win32" ,
283
283
"subprocess doesn't support pass_fds on Windows" )
284
284
@unittest .skipIf (UB_SANITIZER or MEMORY_SANITIZER ,
285
- "sanizer builds change crashing process output." )
285
+ "sanitizer builds change crashing process output." )
286
286
@skip_segfault_on_android
287
287
def test_enable_fd (self ):
288
288
with tempfile .TemporaryFile ('wb+' ) as fp :
0 commit comments