Skip to content

Commit fe8ca4b

Browse files
committed
Fix up test_dis
1 parent 4bdd75e commit fe8ca4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_dis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def bug1333982(x=[]):
204204
LOAD_CONST 1 (<code object <genexpr> at 0x..., file "%s", line %d>)
205205
MAKE_FUNCTION
206206
LOAD_FAST_BORROW 0 (x)
207+
GET_ITER
207208
CALL 0
208209
209210
%3d LOAD_SMALL_INT 1
@@ -832,6 +833,7 @@ def foo(x):
832833
MAKE_FUNCTION
833834
SET_FUNCTION_ATTRIBUTE 8 (closure)
834835
LOAD_DEREF 1 (y)
836+
GET_ITER
835837
CALL 0
836838
CALL 1
837839
RETURN_VALUE
@@ -851,8 +853,7 @@ def foo(x):
851853
%4d RETURN_GENERATOR
852854
POP_TOP
853855
L1: RESUME 0
854-
LOAD_FAST_BORROW 0 (.0)
855-
GET_ITER
856+
LOAD_FAST 0 (.0)
856857
L2: FOR_ITER 14 (to L3)
857858
STORE_FAST 1 (z)
858859
LOAD_DEREF 2 (x)

0 commit comments

Comments
 (0)