Skip to content

Commit 021c03d

Browse files
committed
Make the skip work if PY_CFLAGS is not set
1 parent 713bf7d commit 021c03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_cppext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_build_cpp03(self):
2929
# Building and running an extension in clang sanitizing mode is not
3030
# straightforward
3131
@unittest.skipIf(
32-
'-fsanitize' in sysconfig.get_config_var('PY_CFLAGS'),
32+
'-fsanitize' in (sysconfig.get_config_var('PY_CFLAGS') or ''),
3333
'test does not work with analyzing builds')
3434
# the test uses venv+pip: skip if it's not available
3535
@support.requires_venv_with_pip()

0 commit comments

Comments
 (0)