diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-15 07:35:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 07:35:23 (GMT) |
commit | d9107aa0157a2ff6741b9aa2f78759e90f522bd7 (patch) | |
tree | 0bb4f2b8c0ac17fd92c03b7e5785d38e307938ae /Lib/test/test_cppext.py | |
parent | a6c4ca9b7cc9d8e0715be099adf3aecc415539f8 (diff) | |
download | cpython-d9107aa0157a2ff6741b9aa2f78759e90f522bd7.zip cpython-d9107aa0157a2ff6741b9aa2f78759e90f522bd7.tar.gz cpython-d9107aa0157a2ff6741b9aa2f78759e90f522bd7.tar.bz2 |
gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) (#94849)
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
(cherry picked from commit 6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e)
Diffstat (limited to 'Lib/test/test_cppext.py')
-rw-r--r-- | Lib/test/test_cppext.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_cppext.py b/Lib/test/test_cppext.py index 2c54d33..465894d 100644 --- a/Lib/test/test_cppext.py +++ b/Lib/test/test_cppext.py @@ -4,6 +4,7 @@ import os.path import sys import unittest import subprocess +import sysconfig from test import support from test.support import os_helper @@ -25,6 +26,11 @@ class TestCPPExt(unittest.TestCase): # With MSVC, the linker fails with: cannot open file 'python311.lib' # https://github.com/python/cpython/pull/32175#issuecomment-1111175897 @unittest.skipIf(MS_WINDOWS, 'test fails on Windows') + # Building and running an extension in clang sanitizing mode is not + # straightforward + @unittest.skipIf( + '-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() def check_build(self, std_cpp03, extension_name): |