Skip to content

50% of tests in test__opcode are not run #110923

Closed
@AlexWaygood

Description

@AlexWaygood

Bug report

Bug description:

Following 40f3f11, test__opcode.py has two subclasses of unittest.TestCase in the global namespace that are both called OpListTests. This means that all tests in the first class are silently skipped in CI, as the whole class definition is overridden by the second class at import time, before unittest even tries to load the tests inside the class.

If the TestCase subclasses are given different names, the tests in the first class fail, as they rely on a helper method that was removed in 40f3f11.

Cc. @iritkatriel as author of 40f3f11

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixestestsTests 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