Open
Description
Bug report
Bug description:
There's a certain amount of Cpython-specific tests which isn't marked with a cpython_only
decorator.
I'm certain that CPython-specific tests should be excluded from running on any other implementation, which is advantageous for us. This ensures that when developing another Python implementation, you can selectively avoid running these specific CPython tests, which is beneficial during the testing phase. This way, you can focus on relevant tests for your implementation without unnecessary interference from CPython-specific ones.
So, my final goal is to make the whole CPython test suite runnable on other Python implementations.
I would like to send a one PR per test file which needs a fix.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-115142: Skip
test_optimizer
if_testinternalcapi
module is not available. #115175 - gh-115142: Skip
test__xxsubinterpreters
if_testinternalcapi
is not available #116507 - [3.12] gh-115142: Skip
test__xxsubinterpreters
if_testcapi
is not available #116543 - gh-115142: Skip
test_capi/test_opt.py
if_testinternalcapi
is not available #117574 - gh-115142: Skip
test_capi.test_dict.py
if_testcapi
and_testlimitedcapi
are not available #117588 - [3.12] gh-115142: Skip
test_capi.test_dict.py
if_testcapi
an… #117718 - gh-115142: Skip some test cases in
Lib/test/test_compile
if_testinternalcapi
is not available #124474