Closed
Description
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