]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754) (#94780)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Jul 2022 09:09:06 +0000 (02:09 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2022 09:09:06 +0000 (11:09 +0200)
commitffbd6ae37c427061adae09956cd9388c86264bb7
treea4dabe84300282838035c278b6d3ed25d573391b
parent3c91f429181ca9620ffcf049c1e8d5039e9691ee
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754) (#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>
Lib/test/_testcppext.cpp
Lib/test/setup_testcppext.py
Lib/test/test_cppext.py