summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cext
Commit message (Collapse)AuthorAgeFilesLines
* test_cext, test_cppext: enable /W4 warnings on Windows (#124253)Victor Stinner2024-09-192-2/+10
| | | | Add an explicit cast to (void*) and add Py_UNUSED() to fix some warnings in extension.c.
* Check for compiler warnings in test_cext on Windows (#121088)Victor Stinner2024-06-282-2/+8
| | | | | | | | On Windows, test_cext and test_cppext now pass /WX flag to the MSC compiler to treat all compiler warnings as errors. In verbose mode, these tests now log the compiler commands to help debugging. Change Py_BUILD_ASSERT_EXPR implementation on Windows to avoid a compiler warning about an unnamed structure.
* gh-120593: Check -Wcast-qual flag in test_cext (#121081)Victor Stinner2024-06-271-0/+3
| | | | Check the usage of the 'const' qualifier in the Python C API in test_cext.
* gh-118124: Use static_assert() in Py_BUILD_ASSERT() on C11 (#118398)Victor Stinner2024-04-301-0/+5
| | | | | | Use static_assert() in Py_BUILD_ASSERT() and Py_BUILD_ASSERT_EXPR() on C11 and newer and C++11 and newer. Add tests to test_cext and test_cppext.
* gh-117478: Add `@support.requires_gil_enabled` decorator (#117479)Sam Gross2024-04-041-2/+2
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-116869: Enable -Werror in test_cext for Free Threading (#117106)Victor Stinner2024-03-201-5/+7
| | | | Check for warnings, but don't enable the compiler flag -Werror=declaration-after-statement.
* gh-116869: Fix test_cext for Free Threading (#117043)Victor Stinner2024-03-192-1/+3
| | | Don't check for warnings on Free Threading.
* gh-116869: Fix test_cext on RHEL7 (#117010)Victor Stinner2024-03-191-10/+13
| | | | | Remove -std option from CC command line. Skip C++14 test for now on non-Windows platforms (like RHEL7).
* gh-92906: Enable test_cext and test_cppext on Windows (#117000)Victor Stinner2024-03-193-15/+51
| | | | | | | | | | On Windows in release mode, the test_cext and test_cppext can now build C and C++ extensions. * test_cext now also builds the C extension without options. * test_cppext now also builds the C++ extension without options. * Add C++14 test to test_cppext; C++11 is not supported by MSVC. * Make setup_venv_with_pip_setuptools_wheel() quiet when support.verbose is false. Only show stdout and stderr on failure.
* gh-116869: Test the limited C API in test_cext (#116995)Victor Stinner2024-03-193-30/+55
|
* gh-116869: Build test_cext with -Werror=declaration-after-statement (#116990)Victor Stinner2024-03-192-0/+6
| | | | Make sure that the C API does not emit compiler warnings when built with -Werror=declaration-after-statement.
* gh-116869: Enable test_cext and test_cppext on Free Threading build (#116973)Victor Stinner2024-03-181-15/+9
| | | | Remove the "if Py_GIL_DISABLED" skip and move all "skip" decorators to the class. Use support.check_sanitizer()
* gh-116869: Add test_cext test: build a C extension (#116954)Victor Stinner2024-03-183-0/+219