The test fails on CPython master, so shouldn't it be removed? Don't we have a policy that all tests must pass on master?
This is what I see:
cpython38$ ./python.exe Lib/test/test_opcodes.py
./python.exe Lib/test/test_opcodes.py
.F......
======================================================================
FAIL: test_do_not_recreate_annotations (__main__.OpcodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_opcodes.py", line 45, in test_do_not_recreate_annotations
class C:
File "Lib/test/test_opcodes.py", line 48, in C
x: int
AssertionError: NameError not raised
----------------------------------------------------------------------
Ran 8 tests in 0.003s
FAILED (failures=1)
cpython38$ |