@@ -851,17 +851,13 @@ def compile_snippet(i):
851
851
self .fail ("stack sizes diverge with # of consecutive snippets: "
852
852
"%s\n %s\n %s" % (sizes , snippet , out .getvalue ()))
853
853
854
- # TODO: RUSTPYTHON
855
- @unittest .expectedFailure
856
854
def test_if (self ):
857
855
snippet = """
858
856
if x:
859
857
a
860
858
"""
861
859
self .check_stack_size (snippet )
862
860
863
- # TODO: RUSTPYTHON
864
- @unittest .expectedFailure
865
861
def test_if_else (self ):
866
862
snippet = """
867
863
if x:
@@ -873,8 +869,6 @@ def test_if_else(self):
873
869
"""
874
870
self .check_stack_size (snippet )
875
871
876
- # TODO: RUSTPYTHON
877
- @unittest .expectedFailure
878
872
def test_try_except_bare (self ):
879
873
snippet = """
880
874
try:
@@ -884,8 +878,6 @@ def test_try_except_bare(self):
884
878
"""
885
879
self .check_stack_size (snippet )
886
880
887
- # TODO: RUSTPYTHON
888
- @unittest .expectedFailure
889
881
def test_try_except_qualified (self ):
890
882
snippet = """
891
883
try:
@@ -899,8 +891,6 @@ def test_try_except_qualified(self):
899
891
"""
900
892
self .check_stack_size (snippet )
901
893
902
- # TODO: RUSTPYTHON
903
- @unittest .expectedFailure
904
894
def test_try_except_as (self ):
905
895
snippet = """
906
896
try:
@@ -914,8 +904,6 @@ def test_try_except_as(self):
914
904
"""
915
905
self .check_stack_size (snippet )
916
906
917
- # TODO: RUSTPYTHON
918
- @unittest .expectedFailure
919
907
def test_try_finally (self ):
920
908
snippet = """
921
909
try:
@@ -925,17 +913,13 @@ def test_try_finally(self):
925
913
"""
926
914
self .check_stack_size (snippet )
927
915
928
- # TODO: RUSTPYTHON
929
- @unittest .expectedFailure
930
916
def test_with (self ):
931
917
snippet = """
932
918
with x as y:
933
919
a
934
920
"""
935
921
self .check_stack_size (snippet )
936
922
937
- # TODO: RUSTPYTHON
938
- @unittest .expectedFailure
939
923
def test_while_else (self ):
940
924
snippet = """
941
925
while x:
@@ -945,17 +929,13 @@ def test_while_else(self):
945
929
"""
946
930
self .check_stack_size (snippet )
947
931
948
- # TODO: RUSTPYTHON
949
- @unittest .expectedFailure
950
932
def test_for (self ):
951
933
snippet = """
952
934
for x in y:
953
935
a
954
936
"""
955
937
self .check_stack_size (snippet )
956
938
957
- # TODO: RUSTPYTHON
958
- @unittest .expectedFailure
959
939
def test_for_else (self ):
960
940
snippet = """
961
941
for x in y:
@@ -965,8 +945,6 @@ def test_for_else(self):
965
945
"""
966
946
self .check_stack_size (snippet )
967
947
968
- # TODO: RUSTPYTHON
969
- @unittest .expectedFailure
970
948
def test_for_break_continue (self ):
971
949
snippet = """
972
950
for x in y:
@@ -981,8 +959,6 @@ def test_for_break_continue(self):
981
959
"""
982
960
self .check_stack_size (snippet )
983
961
984
- # TODO: RUSTPYTHON
985
- @unittest .expectedFailure
986
962
def test_for_break_continue_inside_try_finally_block (self ):
987
963
snippet = """
988
964
for x in y:
@@ -1000,8 +976,6 @@ def test_for_break_continue_inside_try_finally_block(self):
1000
976
"""
1001
977
self .check_stack_size (snippet )
1002
978
1003
- # TODO: RUSTPYTHON
1004
- @unittest .expectedFailure
1005
979
def test_for_break_continue_inside_finally_block (self ):
1006
980
snippet = """
1007
981
for x in y:
@@ -1019,8 +993,6 @@ def test_for_break_continue_inside_finally_block(self):
1019
993
"""
1020
994
self .check_stack_size (snippet )
1021
995
1022
- # TODO: RUSTPYTHON
1023
- @unittest .expectedFailure
1024
996
def test_for_break_continue_inside_except_block (self ):
1025
997
snippet = """
1026
998
for x in y:
@@ -1038,8 +1010,6 @@ def test_for_break_continue_inside_except_block(self):
1038
1010
"""
1039
1011
self .check_stack_size (snippet )
1040
1012
1041
- # TODO: RUSTPYTHON
1042
- @unittest .expectedFailure
1043
1013
def test_for_break_continue_inside_with_block (self ):
1044
1014
snippet = """
1045
1015
for x in y:
@@ -1055,8 +1025,6 @@ def test_for_break_continue_inside_with_block(self):
1055
1025
"""
1056
1026
self .check_stack_size (snippet )
1057
1027
1058
- # TODO: RUSTPYTHON
1059
- @unittest .expectedFailure
1060
1028
def test_return_inside_try_finally_block (self ):
1061
1029
snippet = """
1062
1030
try:
@@ -1069,8 +1037,6 @@ def test_return_inside_try_finally_block(self):
1069
1037
"""
1070
1038
self .check_stack_size (snippet )
1071
1039
1072
- # TODO: RUSTPYTHON
1073
- @unittest .expectedFailure
1074
1040
def test_return_inside_finally_block (self ):
1075
1041
snippet = """
1076
1042
try:
@@ -1083,8 +1049,6 @@ def test_return_inside_finally_block(self):
1083
1049
"""
1084
1050
self .check_stack_size (snippet )
1085
1051
1086
- # TODO: RUSTPYTHON
1087
- @unittest .expectedFailure
1088
1052
def test_return_inside_except_block (self ):
1089
1053
snippet = """
1090
1054
try:
@@ -1097,8 +1061,6 @@ def test_return_inside_except_block(self):
1097
1061
"""
1098
1062
self .check_stack_size (snippet )
1099
1063
1100
- # TODO: RUSTPYTHON
1101
- @unittest .expectedFailure
1102
1064
def test_return_inside_with_block (self ):
1103
1065
snippet = """
1104
1066
with c:
@@ -1109,26 +1071,20 @@ def test_return_inside_with_block(self):
1109
1071
"""
1110
1072
self .check_stack_size (snippet )
1111
1073
1112
- # TODO: RUSTPYTHON
1113
- @unittest .expectedFailure
1114
1074
def test_async_with (self ):
1115
1075
snippet = """
1116
1076
async with x as y:
1117
1077
a
1118
1078
"""
1119
1079
self .check_stack_size (snippet , async_ = True )
1120
1080
1121
- # TODO: RUSTPYTHON
1122
- @unittest .expectedFailure
1123
1081
def test_async_for (self ):
1124
1082
snippet = """
1125
1083
async for x in y:
1126
1084
a
1127
1085
"""
1128
1086
self .check_stack_size (snippet , async_ = True )
1129
1087
1130
- # TODO: RUSTPYTHON
1131
- @unittest .expectedFailure
1132
1088
def test_async_for_else (self ):
1133
1089
snippet = """
1134
1090
async for x in y:
@@ -1138,8 +1094,6 @@ def test_async_for_else(self):
1138
1094
"""
1139
1095
self .check_stack_size (snippet , async_ = True )
1140
1096
1141
- # TODO: RUSTPYTHON
1142
- @unittest .expectedFailure
1143
1097
def test_for_break_continue_inside_async_with_block (self ):
1144
1098
snippet = """
1145
1099
for x in y:
@@ -1155,8 +1109,6 @@ def test_for_break_continue_inside_async_with_block(self):
1155
1109
"""
1156
1110
self .check_stack_size (snippet , async_ = True )
1157
1111
1158
- # TODO: RUSTPYTHON
1159
- @unittest .expectedFailure
1160
1112
def test_return_inside_async_with_block (self ):
1161
1113
snippet = """
1162
1114
async with c:
0 commit comments