Skip to content

Commit 713bf7d

Browse files
committed
Punt on C++ sanitizing builds for now
1 parent c6945f1 commit 713bf7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_cppext.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
import unittest
66
import subprocess
7+
import sysconfig
78
from test import support
89
from test.support import os_helper
910

@@ -25,6 +26,11 @@ def test_build_cpp03(self):
2526
# With MSVC, the linker fails with: cannot open file 'python311.lib'
2627
# https://github.com/python/cpython/pull/32175#issuecomment-1111175897
2728
@unittest.skipIf(MS_WINDOWS, 'test fails on Windows')
29+
# Building and running an extension in clang sanitizing mode is not
30+
# straightforward
31+
@unittest.skipIf(
32+
'-fsanitize' in sysconfig.get_config_var('PY_CFLAGS'),
33+
'test does not work with analyzing builds')
2834
# the test uses venv+pip: skip if it's not available
2935
@support.requires_venv_with_pip()
3036
def check_build(self, std_cpp03, extension_name):

0 commit comments

Comments
 (0)