• Home
  • Raw
  • Download

Lines Matching refs:output

14     def __init__(self, output, value):  argument
15 self.output = output
19 self.output.append(self.value)
22 self.output.append(-self.value)
26 def __init__(self, output, value): argument
27 self.output = output
31 self.output.append(self.value)
34 self.output.append(-self.value)
614 def no_jump_to_non_integers(output): argument
616 output.append(2)
618 output.append('integer' in str(e))
651 output = []
653 func(output)
656 func(output)
658 self.compare_jump_output(expected, output)
664 output = []
666 asyncio.run(func(output))
669 asyncio.run(func(output))
671 self.compare_jump_output(expected, output)
700 def test_jump_simple_forwards(output): argument
701 output.append(1)
702 output.append(2)
703 output.append(3)
706 def test_jump_simple_backwards(output): argument
707 output.append(1)
708 output.append(2)
711 def test_jump_out_of_block_forwards(output): argument
713 output.append(2)
715 output.append(4)
716 output.append(5)
719 def test_jump_out_of_block_backwards(output): argument
720 output.append(1)
722 output.append(3)
724 output.append(5)
725 output.append(6)
726 output.append(7)
729 async def test_jump_out_of_async_for_block_forwards(output): argument
732 output.append(3)
733 output.append(4)
734 output.append(5)
737 async def test_jump_out_of_async_for_block_backwards(output): argument
739 output.append(2)
741 output.append(4)
742 output.append(5)
743 output.append(6)
746 def test_jump_to_codeless_line(output): argument
747 output.append(1)
749 output.append(3)
752 def test_jump_to_same_line(output): argument
753 output.append(1)
754 output.append(2)
755 output.append(3)
759 def test_jump_in_nested_finally(output): argument
761 output.append(2)
763 output.append(4)
765 output.append(6)
767 output.append(8)
768 output.append(9)
771 def test_jump_in_nested_finally_2(output): argument
773 output.append(2)
777 output.append(6)
778 output.append(7)
779 output.append(8)
782 def test_jump_in_nested_finally_3(output): argument
784 output.append(2)
788 output.append(6)
790 output.append(8)
792 output.append(10)
793 output.append(11)
794 output.append(12)
797 def test_jump_infinite_while_loop(output): argument
798 output.append(1)
800 output.append(3)
801 output.append(4)
804 def test_jump_forwards_out_of_with_block(output): argument
805 with tracecontext(output, 1):
806 output.append(2)
807 output.append(3)
810 async def test_jump_forwards_out_of_async_with_block(output): argument
811 async with asynctracecontext(output, 1):
812 output.append(2)
813 output.append(3)
816 def test_jump_backwards_out_of_with_block(output): argument
817 output.append(1)
818 with tracecontext(output, 2):
819 output.append(3)
822 async def test_jump_backwards_out_of_async_with_block(output): argument
823 output.append(1)
824 async with asynctracecontext(output, 2):
825 output.append(3)
828 def test_jump_forwards_out_of_try_finally_block(output): argument
830 output.append(2)
832 output.append(4)
833 output.append(5)
836 def test_jump_backwards_out_of_try_finally_block(output): argument
837 output.append(1)
839 output.append(3)
841 output.append(5)
844 def test_jump_forwards_out_of_try_except_block(output): argument
846 output.append(2)
848 output.append(4)
850 output.append(6)
853 def test_jump_backwards_out_of_try_except_block(output): argument
854 output.append(1)
856 output.append(3)
858 output.append(5)
862 def test_jump_between_except_blocks(output): argument
866 output.append(4)
867 output.append(5)
869 output.append(7)
870 output.append(8)
873 def test_jump_within_except_block(output): argument
877 output.append(4)
878 output.append(5)
879 output.append(6)
880 output.append(7)
883 def test_jump_across_with(output): argument
884 output.append(1)
885 with tracecontext(output, 2):
886 output.append(3)
887 with tracecontext(output, 4):
888 output.append(5)
891 async def test_jump_across_async_with(output): argument
892 output.append(1)
893 async with asynctracecontext(output, 2):
894 output.append(3)
895 async with asynctracecontext(output, 4):
896 output.append(5)
899 def test_jump_out_of_with_block_within_for_block(output): argument
900 output.append(1)
902 with tracecontext(output, 3):
903 output.append(4)
904 output.append(5)
905 output.append(6)
908 async def test_jump_out_of_async_with_block_within_for_block(output): argument
909 output.append(1)
911 async with asynctracecontext(output, 3):
912 output.append(4)
913 output.append(5)
914 output.append(6)
917 def test_jump_out_of_with_block_within_with_block(output): argument
918 output.append(1)
919 with tracecontext(output, 2):
920 with tracecontext(output, 3):
921 output.append(4)
922 output.append(5)
923 output.append(6)
926 async def test_jump_out_of_async_with_block_within_with_block(output): argument
927 output.append(1)
928 with tracecontext(output, 2):
929 async with asynctracecontext(output, 3):
930 output.append(4)
931 output.append(5)
932 output.append(6)
935 def test_jump_out_of_with_block_within_finally_block(output): argument
937 output.append(2)
939 with tracecontext(output, 4):
940 output.append(5)
941 output.append(6)
942 output.append(7)
945 async def test_jump_out_of_async_with_block_within_finally_block(output): argument
947 output.append(2)
949 async with asynctracecontext(output, 4):
950 output.append(5)
951 output.append(6)
952 output.append(7)
955 def test_jump_out_of_complex_nested_blocks(output): argument
956 output.append(1)
958 output.append(3)
960 output.append(5)
963 output.append(8)
965 output.append(10)
966 output.append(11)
967 output.append(12)
970 def test_jump_out_of_with_assignment(output): argument
971 output.append(1)
972 with tracecontext(output, 2) \
974 output.append(4)
975 output.append(5)
978 async def test_jump_out_of_async_with_assignment(output): argument
979 output.append(1)
980 async with asynctracecontext(output, 2) \
982 output.append(4)
983 output.append(5)
986 def test_jump_over_return_in_try_finally_block(output): argument
987 output.append(1)
989 output.append(3)
990 if not output: # always false
992 output.append(6)
994 output.append(8)
995 output.append(9)
998 def test_jump_over_break_in_try_finally_block(output): argument
999 output.append(1)
1001 output.append(3)
1003 output.append(5)
1004 if not output: # always false
1006 output.append(8)
1008 output.append(10)
1009 output.append(11)
1011 output.append(13)
1014 def test_jump_over_for_block_before_else(output): argument
1015 output.append(1)
1016 if not output: # always false
1018 output.append(4)
1020 output.append(6)
1021 output.append(7)
1022 output.append(8)
1025 async def test_jump_over_async_for_block_before_else(output): argument
1026 output.append(1)
1027 if not output: # always false
1029 output.append(4)
1031 output.append(6)
1032 output.append(7)
1033 output.append(8)
1038 def test_no_jump_too_far_forwards(output): argument
1039 output.append(1)
1040 output.append(2)
1043 def test_no_jump_too_far_backwards(output): argument
1044 output.append(1)
1045 output.append(2)
1049 def test_no_jump_to_except_1(output): argument
1051 output.append(2)
1053 output.append(4)
1057 def test_no_jump_to_except_2(output): argument
1059 output.append(2)
1061 output.append(4)
1065 def test_no_jump_to_except_3(output): argument
1067 output.append(2)
1069 output.append(4)
1073 def test_no_jump_to_except_4(output): argument
1075 output.append(2)
1077 output.append(4)
1081 def test_no_jump_forwards_into_for_block(output): argument
1082 output.append(1)
1084 output.append(3)
1087 async def test_no_jump_forwards_into_async_for_block(output): argument
1088 output.append(1)
1090 output.append(3)
1093 def test_no_jump_backwards_into_for_block(output): argument
1095 output.append(2)
1096 output.append(3)
1099 async def test_no_jump_backwards_into_async_for_block(output): argument
1101 output.append(2)
1102 output.append(3)
1105 def test_no_jump_forwards_into_while_block(output): argument
1107 output.append(2)
1109 output.append(4)
1113 def test_no_jump_backwards_into_while_block(output): argument
1116 output.append(3)
1118 output.append(5)
1121 def test_no_jump_forwards_into_with_block(output): argument
1122 output.append(1)
1123 with tracecontext(output, 2):
1124 output.append(3)
1127 async def test_no_jump_forwards_into_async_with_block(output): argument
1128 output.append(1)
1129 async with asynctracecontext(output, 2):
1130 output.append(3)
1133 def test_no_jump_backwards_into_with_block(output): argument
1134 with tracecontext(output, 1):
1135 output.append(2)
1136 output.append(3)
1139 async def test_no_jump_backwards_into_async_with_block(output): argument
1140 async with asynctracecontext(output, 1):
1141 output.append(2)
1142 output.append(3)
1145 def test_no_jump_forwards_into_try_finally_block(output): argument
1146 output.append(1)
1148 output.append(3)
1150 output.append(5)
1153 def test_no_jump_backwards_into_try_finally_block(output): argument
1155 output.append(2)
1157 output.append(4)
1158 output.append(5)
1161 def test_no_jump_forwards_into_try_except_block(output): argument
1162 output.append(1)
1164 output.append(3)
1166 output.append(5)
1170 def test_no_jump_backwards_into_try_except_block(output): argument
1172 output.append(2)
1174 output.append(4)
1176 output.append(6)
1180 def test_no_jump_between_except_blocks_2(output): argument
1184 output.append(4)
1185 output.append(5)
1187 output.append(7)
1188 output.append(8)
1191 def test_no_jump_into_finally_block(output): argument
1193 output.append(2)
1194 output.append(3)
1196 output.append(5)
1197 output.append(6)
1198 output.append(7)
1201 def test_no_jump_into_finally_block_2(output): argument
1202 output.append(1)
1204 output.append(3)
1206 output.append(5)
1209 def test_no_jump_out_of_finally_block(output): argument
1210 output.append(1)
1212 output.append(3)
1214 output.append(5)
1217 def test_no_jump_between_with_blocks(output): argument
1218 output.append(1)
1219 with tracecontext(output, 2):
1220 output.append(3)
1221 with tracecontext(output, 4):
1222 output.append(5)
1225 async def test_no_jump_between_async_with_blocks(output): argument
1226 output.append(1)
1227 async with asynctracecontext(output, 2):
1228 output.append(3)
1229 async with asynctracecontext(output, 4):
1230 output.append(5)
1233 def test_no_jump_into_for_block_before_else(output): argument
1234 output.append(1)
1235 if not output: # always false
1237 output.append(4)
1239 output.append(6)
1240 output.append(7)
1241 output.append(8)
1244 async def test_no_jump_into_async_for_block_before_else(output): argument
1245 output.append(1)
1246 if not output: # always false
1248 output.append(4)
1250 output.append(6)
1251 output.append(7)
1252 output.append(8)
1297 def test_no_jump_from_call(output): argument
1298 output.append(1)
1300 output.append(3)
1302 output.append(5)
1306 def test_no_jump_from_return_event(output): argument
1307 output.append(1)
1312 def test_no_jump_from_exception_event(output): argument
1313 output.append(1)
1318 def test_no_jump_from_yield(output): argument
1320 output.append(2)
1323 output.append(5)