@@ -267,7 +267,7 @@ def bug42562():
267
267
expr_str = "x + 1"
268
268
269
269
dis_expr_str = """\
270
- RESUME 0
270
+ 0 RESUME 0
271
271
272
272
1 LOAD_NAME 0 (x)
273
273
LOAD_CONST 0 (1)
@@ -278,7 +278,7 @@ def bug42562():
278
278
simple_stmt_str = "x = x + 1"
279
279
280
280
dis_simple_stmt_str = """\
281
- RESUME 0
281
+ 0 RESUME 0
282
282
283
283
1 LOAD_NAME 0 (x)
284
284
LOAD_CONST 0 (1)
@@ -297,7 +297,7 @@ def bug42562():
297
297
# leading newline is for a reason (tests lineno)
298
298
299
299
dis_annot_stmt_str = """\
300
- RESUME 0
300
+ 0 RESUME 0
301
301
302
302
2 SETUP_ANNOTATIONS
303
303
LOAD_CONST 0 (1)
@@ -335,7 +335,7 @@ def bug42562():
335
335
# Trailing newline has been deliberately omitted
336
336
337
337
dis_compound_stmt_str = """\
338
- RESUME 0
338
+ 0 RESUME 0
339
339
340
340
1 LOAD_CONST 0 (0)
341
341
STORE_NAME 0 (x)
@@ -1092,7 +1092,7 @@ def test_super_instructions(self):
1092
1092
@cpython_only
1093
1093
def test_binary_specialize (self ):
1094
1094
binary_op_quicken = """\
1095
- 0 RESUME_QUICK 0
1095
+ 0 0 RESUME_QUICK 0
1096
1096
1097
1097
1 2 LOAD_NAME 0 (a)
1098
1098
4 LOAD_NAME 1 (b)
@@ -1110,7 +1110,7 @@ def test_binary_specialize(self):
1110
1110
self .do_disassembly_compare (got , binary_op_quicken % "BINARY_OP_ADD_UNICODE 0 (+)" , True )
1111
1111
1112
1112
binary_subscr_quicken = """\
1113
- 0 RESUME_QUICK 0
1113
+ 0 0 RESUME_QUICK 0
1114
1114
1115
1115
1 2 LOAD_NAME 0 (a)
1116
1116
4 LOAD_CONST 0 (0)
@@ -1130,7 +1130,7 @@ def test_binary_specialize(self):
1130
1130
@cpython_only
1131
1131
def test_load_attr_specialize (self ):
1132
1132
load_attr_quicken = """\
1133
- 0 RESUME_QUICK 0
1133
+ 0 0 RESUME_QUICK 0
1134
1134
1135
1135
1 2 LOAD_CONST 0 ('a')
1136
1136
4 LOAD_ATTR_SLOT 0 (__class__)
@@ -1144,7 +1144,7 @@ def test_load_attr_specialize(self):
1144
1144
@cpython_only
1145
1145
def test_call_specialize (self ):
1146
1146
call_quicken = """\
1147
- RESUME_QUICK 0
1147
+ 0 RESUME_QUICK 0
1148
1148
1149
1149
1 PUSH_NULL
1150
1150
LOAD_NAME 0 (str)
@@ -1718,7 +1718,7 @@ def test_co_positions(self):
1718
1718
for instr in dis .get_instructions (code )
1719
1719
]
1720
1720
expected = [
1721
- (None , None , None , None ),
1721
+ (0 , 1 , 0 , 0 ),
1722
1722
(1 , 1 , 0 , 1 ),
1723
1723
(1 , 1 , 0 , 1 ),
1724
1724
(2 , 2 , 2 , 3 ),
0 commit comments