gh-157649: Merge test_cppext into test_cext - #158176
Conversation
* test_cext now uses a single virtual environment for all tests. It makes the test way faster since creating a virtual environment is quite slow. * Add Py_TARGET_ABI3T test on C++. * Move macro tests from module exec function to test_macros(). * Call Py_BEGIN_CRITICAL_SECTION() on a fresh dictionary object, rather than on the module. * Rename some environment variables to always use "CPYTHON_TEST_" prefix. * Replace support.MS_WINDOWS with MSVC to be more explicit. * Move macro tests to test_macros().
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 18d8ef5 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158176%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 8ee942f 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158176%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
test_cext and test_cppext had a lot of duplicated code with only minor differences. Merging the two tests makes sure that most code is shared between C and C++ tests to keep code consistent. For example, this PR adds PyUnicode tests in C and adds Py_TARGET_ABI3T tests in C++. |
|
test_cext fails on macOS: Example: It seems like clang++ uses a C++ version older than C++11 by default. It's likely the old Apple clang++ which uses gnu++98 by default. I changed the two affected TestPublicCpp tests to use C++11 by default on macOS. It's unclear to me why the same passed on macOS before this change. But I don't have access to macOS, so I cannot investigate. Well, my change should fix macOS support. |
|
!buildbot x86-64 MacOS |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit ee31df3 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158176%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot AMD64 Fedora Stable |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit ee31df3 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158176%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
numpyprogram #157649