Skip to content

Commit cc4c11a

Browse files
committed
update test_dis
1 parent a21331a commit cc4c11a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_dis.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,12 +999,14 @@ def test_boundaries(self):
999999
def test_widths(self):
10001000
long_opcodes = set(['JUMP_BACKWARD_NO_INTERRUPT',
10011001
'INSTRUMENTED_CALL_FUNCTION_EX'])
1002-
for opcode, opname in enumerate(dis.opname):
1002+
for op, opname in enumerate(dis.opname):
10031003
if opname in long_opcodes or opname.startswith("INSTRUMENTED"):
10041004
continue
1005+
if opname in opcode._specialized_opmap:
1006+
continue
10051007
with self.subTest(opname=opname):
10061008
width = dis._OPNAME_WIDTH
1007-
if opcode in dis.hasarg:
1009+
if op in dis.hasarg:
10081010
width += 1 + dis._OPARG_WIDTH
10091011
self.assertLessEqual(len(opname), width)
10101012

0 commit comments

Comments
 (0)