Skip to content

Commit

Permalink
Make the skip work if PY_CFLAGS is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou committed Jul 13, 2022
1 parent 713bf7d commit 021c03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_cppext.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_build_cpp03(self):
# Building and running an extension in clang sanitizing mode is not
# straightforward
@unittest.skipIf(
'-fsanitize' in sysconfig.get_config_var('PY_CFLAGS'),
'-fsanitize' in (sysconfig.get_config_var('PY_CFLAGS') or ''),
'test does not work with analyzing builds')
# the test uses venv+pip: skip if it's not available
@support.requires_venv_with_pip()
Expand Down

0 comments on commit 021c03d

Please sign in to comment.