I contributed a pull request to CPython (gh-156684) fixing an import test that depended on the CPython-specific _testsinglephase module and therefore failed on non-CPython implementations.
- Marked the
test_pyinit_function_raises_exceptiontest as CPython-specific so it no longer runs where the required module is unavailable - Validated the change against the import test suite:
python3 -m test test_import