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 6cbb57f62d)
This commit is contained in:
Miss Islington (bot) 2022-07-15 00:35:23 -07:00 committed by GitHub
parent a6c4ca9b7c
commit d9107aa015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 85 additions and 59 deletions

View file

@ -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):