Victor Stinner
23d45f0c24
gh-141563: Don't test datetime.h with the limited C API ( #144673 )
...
Fix test_cext and test_cppext.
2026-02-10 15:45:24 +00:00
Victor Stinner
3dadc22a27
gh-141563: Add missing cast to _PyDateTime_IMPORT() ( #144667 )
...
Fix compilation on C++.
Add test on PyDateTime_IMPORT in test_cext and test_cppext.
2026-02-10 14:47:12 +00:00
Alper
73fa6be2fe
gh-144490: Fix mimalloc debug build for C++ ( #144620 )
2026-02-10 11:56:52 +01:00
Victor Stinner
245ba3d6cb
gh-144490: Fix test_cppext on Windows ( #144628 )
...
Don't include pycore_backoff.h and pycore_cell.h on Windows, since
they emit C++ compiler warnings.
2026-02-09 17:17:00 +01:00
Victor Stinner
172135cc42
gh-144490: Fix test_cppext: test the internal C API ( #144536 )
...
Add missing TEST_INTERNAL_C_API env var.
2026-02-06 16:42:42 +01:00
Victor Stinner
b20722c300
gh-142447: Fix cast warning in pycore_backoff.h ( #142465 )
...
MAKE_VALUE_AND_BACKOFF() macro casts its result to uint16_t.
Add pycore_backoff.h header to test_cppext tests.
2025-12-09 17:03:13 +01:00
Victor Stinner
2c9a8011c6
gh-135906: Test the internal C API in test_cext ( #136247 )
...
Remove duplicated definition: atexit_datacallbackfunc type
is already defined by Include/cpython/pylifecycle.h.
2025-07-11 16:48:43 +02:00
Petr Viktorin
d91cc9db15
gh-129666: Add C11/C++11 to docs and -pedantic-errors to GCC/clang 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`.
2025-03-04 14:10:09 +01:00
Petr Viktorin
ab11c09705
gh-129666: Revert "gh-129666: Add C11/C++11 to docs and -pedantic-errors to GCC/clang test_c[pp]ext tests (GH-130686)" (GH-130688)
...
This reverts commit 003e6d2b97 .
2025-02-28 16:05:36 +00:00
Petr Viktorin
003e6d2b97
gh-129666: Add C11/C++11 to docs and -pedantic-errors to GCC/clang test_c[pp]ext tests (GH-130686)
2025-02-28 16:03:02 +01:00
Victor Stinner
d05a4e6a0d
gh-127906: Test the limited C API in test_cppext ( #127916 )
2024-12-13 13:23:20 +00:00
Victor Stinner
587388ff22
gh-118124: Use static_assert() in Py_BUILD_ASSERT() on C11 ( #118398 )
...
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.
2024-04-30 22:29:48 +02:00
Victor Stinner
a114d08a89
gh-92906: Enable test_cext and test_cppext on Windows ( #117000 )
...
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.
2024-03-19 14:03:27 +00:00
Victor Stinner
21dda09600
gh-108303: Add Lib/test/test_cppext/ sub-directory ( #108325 )
...
* 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.
2023-08-22 18:30:18 +00:00