Skip to content

Commit d06fd46

Browse files
committed
update test_dis
1 parent 8866ee6 commit d06fd46

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

Lib/test/test_dis.py

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,13 @@ def bug42562():
360360
--> BINARY_OP 11 (/)
361361
POP_TOP
362362
363-
%3d >> LOAD_FAST_CHECK 1 (tb)
363+
%3d LOAD_FAST_CHECK 1 (tb)
364364
RETURN_VALUE
365365
>> PUSH_EXC_INFO
366366
367367
%3d LOAD_GLOBAL 0 (Exception)
368368
CHECK_EXC_MATCH
369-
POP_JUMP_IF_FALSE 22 (to 80)
369+
POP_JUMP_IF_FALSE 23 (to 82)
370370
STORE_FAST 0 (e)
371371
372372
%3d LOAD_FAST 0 (e)
@@ -376,7 +376,9 @@ def bug42562():
376376
LOAD_CONST 0 (None)
377377
STORE_FAST 0 (e)
378378
DELETE_FAST 0 (e)
379-
JUMP_BACKWARD 29 (to 14)
379+
380+
%3d LOAD_FAST 1 (tb)
381+
RETURN_VALUE
380382
>> LOAD_CONST 0 (None)
381383
STORE_FAST 0 (e)
382384
DELETE_FAST 0 (e)
@@ -394,6 +396,7 @@ def bug42562():
394396
TRACEBACK_CODE.co_firstlineno + 5,
395397
TRACEBACK_CODE.co_firstlineno + 3,
396398
TRACEBACK_CODE.co_firstlineno + 4,
399+
TRACEBACK_CODE.co_firstlineno + 5,
397400
TRACEBACK_CODE.co_firstlineno + 3)
398401

399402
def _fstring(a, b, c, d):
@@ -440,7 +443,7 @@ def _with(c):
440443
CALL 2
441444
POP_TOP
442445
443-
%3d >> LOAD_CONST 2 (2)
446+
%3d LOAD_CONST 2 (2)
444447
STORE_FAST 2 (y)
445448
LOAD_CONST 0 (None)
446449
RETURN_VALUE
@@ -453,7 +456,11 @@ def _with(c):
453456
POP_EXCEPT
454457
POP_TOP
455458
POP_TOP
456-
JUMP_BACKWARD 13 (to 30)
459+
460+
%3d LOAD_CONST 2 (2)
461+
STORE_FAST 2 (y)
462+
LOAD_CONST 0 (None)
463+
RETURN_VALUE
457464
>> COPY 3
458465
POP_EXCEPT
459466
RERAISE 1
@@ -465,6 +472,7 @@ def _with(c):
465472
_with.__code__.co_firstlineno + 1,
466473
_with.__code__.co_firstlineno + 3,
467474
_with.__code__.co_firstlineno + 1,
475+
_with.__code__.co_firstlineno + 3,
468476
)
469477

470478
async def _asyncwith(c):
@@ -502,7 +510,7 @@ async def _asyncwith(c):
502510
JUMP_BACKWARD_NO_INTERRUPT 4 (to 48)
503511
>> POP_TOP
504512
505-
%3d >> LOAD_CONST 2 (2)
513+
%3d LOAD_CONST 2 (2)
506514
STORE_FAST 2 (y)
507515
LOAD_CONST 0 (None)
508516
RETURN_VALUE
@@ -526,7 +534,11 @@ async def _asyncwith(c):
526534
POP_EXCEPT
527535
POP_TOP
528536
POP_TOP
529-
JUMP_BACKWARD 24 (to 58)
537+
538+
%3d LOAD_CONST 2 (2)
539+
STORE_FAST 2 (y)
540+
LOAD_CONST 0 (None)
541+
RETURN_VALUE
530542
>> COPY 3
531543
POP_EXCEPT
532544
RERAISE 1
@@ -538,6 +550,7 @@ async def _asyncwith(c):
538550
_asyncwith.__code__.co_firstlineno + 1,
539551
_asyncwith.__code__.co_firstlineno + 3,
540552
_asyncwith.__code__.co_firstlineno + 1,
553+
_asyncwith.__code__.co_firstlineno + 3,
541554
)
542555

543556

0 commit comments

Comments
 (0)