You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_cppext does not import/run the C++ extension #94751
The test_cppext test case only checks that the C++ extension builds. It does not import and run test cases, so it can't catch runtime issues like #94731.
The test_cppext test case only checks that the C++ extension builds
Right, for now it's its only purpose as written at top of Lib/test/_testcppext.cpp:
// gh-91321: Very basic C++ test extension to check that the Python C API is
// compatible with C++ and does not emit C++ compiler warnings.
And Lib/test/test_cppext.py:
# gh-91321: Build a basic C++ test extension to check that the Python C API is
# compatible with C++ and does not emit C++ compiler warnings.
The reason is that I was too lazy to finish the work to actually import the built extension. I got enough C++ issues to handle. By the way, it seems like most of the work to fix C++ warnings has been reverted by commit 6cbb57f.
I also got busy with replacing distutils with setuptools (using venv).
Activity
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754
pythongh-94751: Install, import and run the test C++ extension (MVP) (p…
encukou commentedon Jul 12, 2022
Merged the MVP, but there's still work to do:
setup.pyis deprecated, we should probably build/install usingpipgh-94751: Install, import and run the test C++ extension (MVP) (GH-94754
vstinner commentedon Aug 3, 2022
Right, for now it's its only purpose as written at top of Lib/test/_testcppext.cpp:
And Lib/test/test_cppext.py:
The reason is that I was too lazy to finish the work to actually import the built extension. I got enough C++ issues to handle. By the way, it seems like most of the work to fix C++ warnings has been reverted by commit 6cbb57f.
I also got busy with replacing distutils with setuptools (using venv).