Skip to content

Commit 7e4b2a8

Browse files
committed
implement review suggestion
1 parent 79305d2 commit 7e4b2a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_ast/test_ast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2303,14 +2303,15 @@ def get_load_const(self, tree):
23032303
co = compile(tree, '<string>', 'exec')
23042304
consts = []
23052305
for instr in dis.get_instructions(co):
2306-
if instr.opname in ('LOAD_CONST', 'LOAD_CONST_IMMORTAL'):
2306+
if instr.opname in ('LOAD_CONST', 'LOAD_CONST_IMMORTAL', 'LOAD_INT'):
23072307
consts.append(instr.argval)
23082308
return consts
23092309

23102310
@support.cpython_only
23112311
def test_load_const(self):
23122312
consts = [None,
23132313
True, False,
2314+
124,
23142315
2.0,
23152316
3j,
23162317
"unicode",

0 commit comments

Comments
 (0)