summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cppext/extension.cpp
Commit message (Collapse)AuthorAgeFilesLines
* gh-142447: Fix cast warning in pycore_backoff.h (#142465)Victor Stinner2025-12-091-0/+1
| | | | | MAKE_VALUE_AND_BACKOFF() macro casts its result to uint16_t. Add pycore_backoff.h header to test_cppext tests.
* gh-135906: Test the internal C API in test_cext (#136247)Victor Stinner2025-07-111-0/+9
| | | | Remove duplicated definition: atexit_datacallbackfunc type is already defined by Include/cpython/pylifecycle.h.
* gh-129666: Add C11/C++11 to docs and -pedantic-errors to GCC/clang ↵Petr Viktorin2025-03-041-0/+22
| | | | | | | | | test_c[pp]ext tests (GH-130692) Disable pedantic check for c++03 (unlimited API) Also add a check for c++03 *limited* API, which passes in pedantic mode after removing a comma in the `PySendResult` declaration, and allowing `long long`.
* gh-129666: Revert "gh-129666: Add C11/C++11 to docs and `-pedantic-errors` ↵Petr Viktorin2025-02-281-22/+0
| | | | | to GCC/clang test_c[pp]ext tests (GH-130686)" (GH-130688) This reverts commit 003e6d2b9776c07147a9c628eb028fd2ac3f0008.
* gh-129666: Add C11/C++11 to docs and `-pedantic-errors` to GCC/clang ↵Petr Viktorin2025-02-281-0/+22
| | | | test_c[pp]ext tests (GH-130686)
* gh-127906: Test the limited C API in test_cppext (#127916)Victor Stinner2024-12-131-0/+9
|
* 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-92906: Enable test_cext and test_cppext on Windows (#117000)Victor Stinner2024-03-191-7/+5
| | | | | | | | | | 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-108303: Add Lib/test/test_cppext/ sub-directory (#108325)Victor Stinner2023-08-221-0/+260
* 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.