summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cppext
Commit message (Collapse)AuthorAgeFilesLines
* gh-127906: Test the limited C API in test_cppext (#127916)Victor Stinner2024-12-133-3/+25
|
* test_cext, test_cppext: enable /W4 warnings on Windows (#124253)Victor Stinner2024-09-191-0/+2
| | | | 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-118124: Use static_assert() in Py_BUILD_ASSERT() on C11 (#118398)Victor Stinner2024-04-301-0/+4
| | | | | | 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-116869: Fix test_cext on RHEL7 (#117010)Victor Stinner2024-03-192-10/+17
| | | | | 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-40/+83
| | | | | | | | | | 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: Enable test_cext and test_cppext on Free Threading build (#116973)Victor Stinner2024-03-181-17/+10
| | | | Remove the "if Py_GIL_DISABLED" skip and move all "skip" decorators to the class. Use support.check_sanitizer()
* gh-112535: Add test on _Py_ThreadId() (#112709)Victor Stinner2023-12-041-2/+1
| | | Add also test.support.Py_GIL_DISABLED constant.
* gh-111863: Rename `Py_NOGIL` to `Py_GIL_DISABLED` (#111864)Hugo van Kemenade2023-11-201-1/+1
| | | Rename Py_NOGIL to Py_GIL_DISABLED
* Add support.MS_WINDOWS constant (#110446)Victor Stinner2023-10-062-6/+3
|
* gh-110119: Temporarily skip test_cppext on --disable-gil builds. (#110123)Sam Gross2023-09-291-0/+4
| | | | The current version of pip does not support "t" in the ABI flags. Skip the test in `--disable-gil` builds until we can update pip.
* gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421)Serhiy Storchaka2023-09-021-0/+2
| | | | Only mark tests which spend significant system or user time, by itself or in subprocesses.
* gh-105776: Fix test_cppext when CC contains -std=c11 option (#108343)Victor Stinner2023-08-231-0/+13
| | | | Fix test_cppext when the C compiler command has the "-std=c11" option. Remove "-std=" options from the compiler command.
* gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325)Victor Stinner2023-08-223-0/+390
* Move test_cppext to its own directory * Rename setup_testcppext.py to setup.py * Rename _testcppext.cpp to extension.cpp * The source (extension.cpp) is now also copied by the test.