@@ -655,8 +655,6 @@ def bad_normalize(*args):
655
655
with support .swap_attr (unicodedata , 'normalize' , bad_normalize ):
656
656
self .assertRaises (TypeError , ast .parse , '\u03D5 ' )
657
657
658
- # TODO: RUSTPYTHON
659
- @unittest .expectedFailure
660
658
def test_issue18374_binop_col_offset (self ):
661
659
tree = ast .parse ('4+5+6+7' )
662
660
parent_binop = tree .body [0 ].value
@@ -994,8 +992,6 @@ def test_get_docstring_none(self):
994
992
node = ast .parse ('async def foo():\n x = "not docstring"' )
995
993
self .assertIsNone (ast .get_docstring (node .body [0 ]))
996
994
997
- # TODO: RUSTPYTHON
998
- @unittest .expectedFailure
999
995
def test_multi_line_docstring_col_offset_and_lineno_issue16806 (self ):
1000
996
node = ast .parse (
1001
997
'"""line one\n line two"""\n \n '
@@ -1015,16 +1011,12 @@ def test_multi_line_docstring_col_offset_and_lineno_issue16806(self):
1015
1011
self .assertEqual (node .body [2 ].col_offset , 0 )
1016
1012
self .assertEqual (node .body [2 ].lineno , 13 )
1017
1013
1018
- # TODO: RUSTPYTHON
1019
- @unittest .expectedFailure
1020
1014
def test_elif_stmt_start_position (self ):
1021
1015
node = ast .parse ('if a:\n pass\n elif b:\n pass\n ' )
1022
1016
elif_stmt = node .body [0 ].orelse [0 ]
1023
1017
self .assertEqual (elif_stmt .lineno , 3 )
1024
1018
self .assertEqual (elif_stmt .col_offset , 0 )
1025
1019
1026
- # TODO: RUSTPYTHON
1027
- @unittest .expectedFailure
1028
1020
def test_elif_stmt_start_position_with_else (self ):
1029
1021
node = ast .parse ('if a:\n pass\n elif b:\n pass\n else:\n pass\n ' )
1030
1022
elif_stmt = node .body [0 ].orelse [0 ]
@@ -1932,8 +1924,6 @@ def test_lambda(self):
1932
1924
self ._check_content (s , lam .args .args [0 ], 'x' )
1933
1925
self ._check_content (s , lam .args .vararg , 'y' )
1934
1926
1935
- # TODO: RUSTPYTHON
1936
- @unittest .expectedFailure
1937
1927
def test_func_def (self ):
1938
1928
s = dedent ('''
1939
1929
def func(x: int,
@@ -1963,8 +1953,6 @@ def test_call_noargs(self):
1963
1953
self ._check_content (s , call .func , 'x[0]' )
1964
1954
self ._check_end_pos (call , 1 , 6 )
1965
1955
1966
- # TODO: RUSTPYTHON
1967
- @unittest .expectedFailure
1968
1956
def test_class_def (self ):
1969
1957
s = dedent ('''
1970
1958
class C(A, B):
@@ -1980,8 +1968,6 @@ def test_class_kw(self):
1980
1968
cdef = ast .parse (s ).body [0 ]
1981
1969
self ._check_content (s , cdef .keywords [0 ].value , 'abc.ABCMeta' )
1982
1970
1983
- # TODO: RUSTPYTHON
1984
- @unittest .expectedFailure
1985
1971
def test_multi_line_str (self ):
1986
1972
s = dedent ('''
1987
1973
x = """Some multi-line text.
@@ -2075,8 +2061,6 @@ def test_fstring_multi_line(self):
2075
2061
self ._check_content (s , binop .left , 'arg_one' )
2076
2062
self ._check_content (s , binop .right , 'arg_two' )
2077
2063
2078
- # TODO: RUSTPYTHON
2079
- @unittest .expectedFailure
2080
2064
def test_import_from_multi_line (self ):
2081
2065
s = dedent ('''
2082
2066
from x.y.z import (
@@ -2087,8 +2071,6 @@ def test_import_from_multi_line(self):
2087
2071
self ._check_end_pos (imp , 3 , 1 )
2088
2072
self ._check_end_pos (imp .names [2 ], 2 , 16 )
2089
2073
2090
- # TODO: RUSTPYTHON
2091
- @unittest .expectedFailure
2092
2074
def test_slices (self ):
2093
2075
s1 = 'f()[1, 2] [0]'
2094
2076
s2 = 'x[ a.b: c.d]'
@@ -2106,8 +2088,6 @@ def test_slices(self):
2106
2088
self ._check_content (sm , im .slice .elts [1 ].lower , 'g ()' )
2107
2089
self ._check_end_pos (im , 3 , 3 )
2108
2090
2109
- # TODO: RUSTPYTHON
2110
- @unittest .expectedFailure
2111
2091
def test_binop (self ):
2112
2092
s = dedent ('''
2113
2093
(1 * 2 + (3 ) +
@@ -2156,8 +2136,6 @@ def test_attribute_spaces(self):
2156
2136
self ._check_content (s , call , s )
2157
2137
self ._check_content (s , call .args [0 ], 'x. y .z' )
2158
2138
2159
- # TODO: RUSTPYTHON
2160
- @unittest .expectedFailure
2161
2139
def test_redundant_parenthesis (self ):
2162
2140
s = '( ( ( a + b ) ) )'
2163
2141
v = ast .parse (s ).body [0 ].value
@@ -2196,8 +2174,6 @@ def test_displays(self):
2196
2174
self ._check_content (s2 , c2 .keys [1 ], 'f ()' )
2197
2175
self ._check_content (s2 , c2 .values [1 ], 'g ()' )
2198
2176
2199
- # TODO: RUSTPYTHON
2200
- @unittest .expectedFailure
2201
2177
def test_comprehensions (self ):
2202
2178
s = dedent ('''
2203
2179
x = [{x for x, y in stuff
@@ -2210,8 +2186,6 @@ def test_comprehensions(self):
2210
2186
self ._check_content (s , cmp .elt .generators [0 ].ifs [0 ], 'cond.x' )
2211
2187
self ._check_content (s , cmp .elt .generators [0 ].target , 'x, y' )
2212
2188
2213
- # TODO: RUSTPYTHON
2214
- @unittest .expectedFailure
2215
2189
def test_yield_await (self ):
2216
2190
s = dedent ('''
2217
2191
async def f():
@@ -2252,8 +2226,6 @@ def fun(self) -> None:
2252
2226
self .assertEqual (ast .get_source_segment (s_orig , cdef .body [0 ], padded = True ),
2253
2227
s_method )
2254
2228
2255
- # TODO: RUSTPYTHON
2256
- @unittest .expectedFailure
2257
2229
def test_source_segment_endings (self ):
2258
2230
s = 'v = 1\r \n w = 1\n x = 1\n \r y = 1\r z = 1\r \n '
2259
2231
v , w , x , y , z = ast .parse (s ).body
0 commit comments