Contributing to CPython

1 minute read Published: 2026-03-10

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_exception test 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