Skip to content

Meta issue: Mark all CPython-specific tests with a test.support.cpython_only decorator #115142

Open
@Eclips4

Description

@Eclips4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions