Lines Matching refs:output
495 def jump_simple_forwards(output): argument
496 output.append(1)
497 output.append(2)
498 output.append(3)
501 jump_simple_forwards.output = [3]
503 def jump_simple_backwards(output): argument
504 output.append(1)
505 output.append(2)
508 jump_simple_backwards.output = [1, 1, 2]
510 def jump_out_of_block_forwards(output): argument
512 output.append(2)
514 output.append(4)
515 output.append(5)
518 jump_out_of_block_forwards.output = [2, 5]
520 def jump_out_of_block_backwards(output): argument
521 output.append(1)
523 output.append(3)
525 output.append(5)
526 output.append(6)
527 output.append(7)
530 jump_out_of_block_backwards.output = [1, 3, 5, 1, 3, 5, 6, 7]
532 def jump_to_codeless_line(output): argument
533 output.append(1)
535 output.append(3)
538 jump_to_codeless_line.output = [3]
540 def jump_to_same_line(output): argument
541 output.append(1)
542 output.append(2)
543 output.append(3)
546 jump_to_same_line.output = [1, 2, 3]
549 def jump_in_nested_finally(output): argument
551 output.append(2)
553 output.append(4)
555 output.append(6)
557 output.append(8)
558 output.append(9)
561 jump_in_nested_finally.output = [2, 9]
563 def jump_infinite_while_loop(output): argument
564 output.append(1)
566 output.append(2)
567 output.append(3)
570 jump_infinite_while_loop.output = [1, 3]
574 def no_jump_too_far_forwards(output): argument
576 output.append(2)
577 output.append(3)
579 output.append('after' in str(e))
582 no_jump_too_far_forwards.output = [2, True]
584 def no_jump_too_far_backwards(output): argument
586 output.append(2)
587 output.append(3)
589 output.append('before' in str(e))
592 no_jump_too_far_backwards.output = [2, True]
595 def no_jump_to_except_1(output): argument
597 output.append(2)
600 output.append('except' in str(e))
603 no_jump_to_except_1.output = [True]
605 def no_jump_to_except_2(output): argument
607 output.append(2)
610 output.append('except' in str(e))
613 no_jump_to_except_2.output = [True]
615 def no_jump_to_except_3(output): argument
617 output.append(2)
619 output.append('except' in str(e))
622 no_jump_to_except_3.output = [True]
624 def no_jump_to_except_4(output): argument
626 output.append(2)
628 output.append('except' in str(e))
631 no_jump_to_except_4.output = [True]
633 def no_jump_forwards_into_block(output): argument
635 output.append(2)
637 output.append(4)
639 output.append('into' in str(e))
642 no_jump_forwards_into_block.output = [True]
644 def no_jump_backwards_into_block(output): argument
647 output.append(3)
648 output.append(4)
650 output.append('into' in str(e))
653 no_jump_backwards_into_block.output = [3, 3, True]
655 def no_jump_into_finally_block(output): argument
658 output.append(3)
661 output.append(6)
663 output.append('finally' in str(e))
666 no_jump_into_finally_block.output = [3, 6, True] # The 'finally' still runs
668 def no_jump_out_of_finally_block(output): argument
671 output.append(3)
673 output.append(5)
674 output.append(6)
676 output.append('finally' in str(e))
679 no_jump_out_of_finally_block.output = [3, True]
682 def no_jump_to_non_integers(output): argument
684 output.append(2)
686 output.append('integer' in str(e))
689 no_jump_to_non_integers.output = [True]
691 def jump_across_with(output): argument
697 jump_across_with.output = []
725 output = []
726 func(output)
728 self.compare_jump_output(func.output, output)
788 f.output = [0]