We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a21331a commit cc4c11aCopy full SHA for cc4c11a
Lib/test/test_dis.py
@@ -999,12 +999,14 @@ def test_boundaries(self):
999
def test_widths(self):
1000
long_opcodes = set(['JUMP_BACKWARD_NO_INTERRUPT',
1001
'INSTRUMENTED_CALL_FUNCTION_EX'])
1002
- for opcode, opname in enumerate(dis.opname):
+ for op, opname in enumerate(dis.opname):
1003
if opname in long_opcodes or opname.startswith("INSTRUMENTED"):
1004
continue
1005
+ if opname in opcode._specialized_opmap:
1006
+ continue
1007
with self.subTest(opname=opname):
1008
width = dis._OPNAME_WIDTH
- if opcode in dis.hasarg:
1009
+ if op in dis.hasarg:
1010
width += 1 + dis._OPARG_WIDTH
1011
self.assertLessEqual(len(opname), width)
1012
0 commit comments