@@ -642,7 +642,8 @@ def _tryfinallyconst(b):
642642 CALL 0
643643 POP_TOP
644644 RERAISE 0
645- >> COPY 3
645+
646+ None >> COPY 3
646647 POP_EXCEPT
647648 RERAISE 1
648649ExceptionTable:
@@ -674,7 +675,8 @@ def _tryfinallyconst(b):
674675 CALL 0
675676 POP_TOP
676677 RERAISE 0
677- >> COPY 3
678+
679+ None >> COPY 3
678680 POP_EXCEPT
679681 RERAISE 1
680682ExceptionTable:
@@ -1822,9 +1824,9 @@ def _prepare_test_cases():
18221824 Instruction (opname = 'CALL' , opcode = 53 , arg = 1 , argval = 1 , argrepr = '' , offset = 414 , start_offset = 414 , starts_line = False , line_number = 28 , is_jump_target = False , positions = None ),
18231825 Instruction (opname = 'POP_TOP' , opcode = 32 , arg = None , argval = None , argrepr = '' , offset = 422 , start_offset = 422 , starts_line = False , line_number = 28 , is_jump_target = False , positions = None ),
18241826 Instruction (opname = 'RERAISE' , opcode = 102 , arg = 0 , argval = 0 , argrepr = '' , offset = 424 , start_offset = 424 , starts_line = False , line_number = 28 , is_jump_target = False , positions = None ),
1825- Instruction (opname = 'COPY' , opcode = 61 , arg = 3 , argval = 3 , argrepr = '' , offset = 426 , start_offset = 426 , starts_line = False , line_number = 28 , is_jump_target = False , positions = None ),
1826- Instruction (opname = 'POP_EXCEPT' , opcode = 31 , arg = None , argval = None , argrepr = '' , offset = 428 , start_offset = 428 , starts_line = False , line_number = 28 , is_jump_target = False , positions = None ),
1827- Instruction (opname = 'RERAISE' , opcode = 102 , arg = 1 , argval = 1 , argrepr = '' , offset = 430 , start_offset = 430 , starts_line = False , line_number = 28 , is_jump_target = False , positions = None ),
1827+ Instruction (opname = 'COPY' , opcode = 61 , arg = 3 , argval = 3 , argrepr = '' , offset = 426 , start_offset = 426 , starts_line = True , line_number = None , is_jump_target = False , positions = None ),
1828+ Instruction (opname = 'POP_EXCEPT' , opcode = 31 , arg = None , argval = None , argrepr = '' , offset = 428 , start_offset = 428 , starts_line = False , line_number = None , is_jump_target = False , positions = None ),
1829+ Instruction (opname = 'RERAISE' , opcode = 102 , arg = 1 , argval = 1 , argrepr = '' , offset = 430 , start_offset = 430 , starts_line = False , line_number = None , is_jump_target = False , positions = None ),
18281830]
18291831
18301832# One last piece of inspect fodder to check the default line number handling
0 commit comments