summaryrefslogtreecommitdiffstats
path: root/Lib/test/setup_testcppext.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) (#94849)Miss Islington (bot)2022-07-151-5/+0
| | | | | Co-authored-by: da-woods <dw-git@d-woods.co.uk> (cherry picked from commit 6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e)
* gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754) ↵Miss Islington (bot)2022-07-131-1/+1
| | | | | | | | | | | | | (#94780) This is a quick-and-dirty way to run the C++ tests. It can definitely be improved in the future, but it should fail when things go wrong. - Run test functions on import (yes, this can definitely be improved) - Fudge setuptools metadata (name & version) to make the extension installable - Install and import the extension in test_cppext (cherry picked from commit ec5db539b9df99c8b96149768dc2e8598dce2afa) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-91321: Fix test_cppext for C++03 (GH-93902) (#93904)Miss Islington (bot)2022-06-161-2/+4
| | | | | | | | | Don't build _testcppext.cpp with -Wzero-as-null-pointer-constant when testing C++03: only use this compiler flag with C++11. (cherry picked from commit a38c2a61d585fce0973e93dd590551ccddd947fb) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-91321: Fix compatibility with C++ older than C++11 (#93784) (#93802)Victor Stinner2022-06-141-0/+51
* Fix the compatibility of the Python C API with C++ older than C++11. * _Py_NULL is only defined as nullptr on C++11 and newer. (cherry picked from commit 4caf5c2753f1aa28d6f4bc1aa377975fd2a62331) * test_cppext now builds the C++ extension with setuptools. * Add @test.support.requires_venv_with_pip. (cherry picked from commit ca0cc9c433830e14714a5cc93fb4e7254da3dd76)