@@ -339,8 +339,6 @@ def test_non_interned_future_from_ast(self):
339
339
mod .body [0 ].module = " __future__ " .strip ()
340
340
compile (mod , "<test>" , "exec" )
341
341
342
- # TODO: RUSTPYTHON
343
- @unittest .expectedFailure
344
342
def test_alias (self ):
345
343
im = ast .parse ("from bar import y" ).body [0 ]
346
344
self .assertEqual (len (im .names ), 1 )
@@ -369,8 +367,6 @@ def test_base_classes(self):
369
367
self .assertTrue (issubclass (ast .comprehension , ast .AST ))
370
368
self .assertTrue (issubclass (ast .Gt , ast .AST ))
371
369
372
- # TODO: RUSTPYTHON
373
- @unittest .expectedFailure
374
370
def test_field_attr_existence (self ):
375
371
for name , item in ast .__dict__ .items ():
376
372
if self ._is_ast_node (name , item ):
@@ -403,8 +399,6 @@ def test_field_attr_writable(self):
403
399
x ._fields = 666
404
400
self .assertEqual (x ._fields , 666 )
405
401
406
- # TODO: RUSTPYTHON
407
- @unittest .expectedFailure
408
402
def test_classattrs (self ):
409
403
x = ast .Num ()
410
404
self .assertEqual (x ._fields , ('value' , 'kind' ))
@@ -548,8 +542,6 @@ def test_module(self):
548
542
x = ast .Module (body , [])
549
543
self .assertEqual (x .body , body )
550
544
551
- # TODO: RUSTPYTHON
552
- @unittest .expectedFailure
553
545
def test_nodeclasses (self ):
554
546
# Zero arguments constructor explicitly allowed
555
547
x = ast .BinOp ()
@@ -594,8 +586,6 @@ def test_nodeclasses(self):
594
586
x = ast .BinOp (1 , 2 , 3 , foobarbaz = 42 )
595
587
self .assertEqual (x .foobarbaz , 42 )
596
588
597
- # TODO: RUSTPYTHON
598
- @unittest .expectedFailure
599
589
def test_no_fields (self ):
600
590
# this used to fail because Sub._fields was None
601
591
x = ast .Sub ()
@@ -698,8 +688,6 @@ def test_issue18374_binop_col_offset(self):
698
688
self .assertEqual (grandchild_binop .end_col_offset , 3 )
699
689
self .assertEqual (grandchild_binop .end_lineno , 1 )
700
690
701
- # TODO: RUSTPYTHON
702
- @unittest .expectedFailure
703
691
def test_issue39579_dotted_name_end_col_offset (self ):
704
692
tree = ast .parse ('@a.b.c\n def f(): pass' )
705
693
attr_b = tree .body [0 ].decorator_list [0 ].value
@@ -1043,8 +1031,6 @@ def test_elif_stmt_start_position_with_else(self):
1043
1031
self .assertEqual (elif_stmt .lineno , 3 )
1044
1032
self .assertEqual (elif_stmt .col_offset , 0 )
1045
1033
1046
- # TODO: RUSTPYTHON
1047
- @unittest .expectedFailure
1048
1034
def test_starred_expr_end_position_within_call (self ):
1049
1035
node = ast .parse ('f(*[0, 1])' )
1050
1036
starred_expr = node .body [0 ].value .args [0 ]
@@ -1939,8 +1925,6 @@ def _parse_value(self, s):
1939
1925
# and a right hand side of an assignment statement.
1940
1926
return ast .parse (s ).body [0 ].value
1941
1927
1942
- # TODO: RUSTPYTHON
1943
- @unittest .expectedFailure
1944
1928
def test_lambda (self ):
1945
1929
s = 'lambda x, *y: None'
1946
1930
lam = self ._parse_value (s )
@@ -1966,17 +1950,13 @@ def func(x: int,
1966
1950
self ._check_content (s , fdef .args .kwarg , 'kwargs: Any' )
1967
1951
self ._check_content (s , fdef .args .kwarg .annotation , 'Any' )
1968
1952
1969
- # TODO: RUSTPYTHON
1970
- @unittest .expectedFailure
1971
1953
def test_call (self ):
1972
1954
s = 'func(x, y=2, **kw)'
1973
1955
call = self ._parse_value (s )
1974
1956
self ._check_content (s , call .func , 'func' )
1975
1957
self ._check_content (s , call .keywords [0 ].value , '2' )
1976
1958
self ._check_content (s , call .keywords [1 ].value , 'kw' )
1977
1959
1978
- # TODO: RUSTPYTHON
1979
- @unittest .expectedFailure
1980
1960
def test_call_noargs (self ):
1981
1961
s = 'x[0]()'
1982
1962
call = self ._parse_value (s )
@@ -1995,8 +1975,6 @@ class C(A, B):
1995
1975
self ._check_content (s , cdef .bases [1 ], 'B' )
1996
1976
self ._check_content (s , cdef .body [0 ], 'x: int = 0' )
1997
1977
1998
- # TODO: RUSTPYTHON
1999
- @unittest .expectedFailure
2000
1978
def test_class_kw (self ):
2001
1979
s = 'class S(metaclass=abc.ABCMeta): pass'
2002
1980
cdef = ast .parse (s ).body [0 ]
@@ -2172,8 +2150,6 @@ def test_tuples(self):
2172
2150
self ._check_content (s3 , t3 , '(1 , 2 )' )
2173
2151
self ._check_end_pos (tm , 3 , 1 )
2174
2152
2175
- # TODO: RUSTPYTHON
2176
- @unittest .expectedFailure
2177
2153
def test_attribute_spaces (self ):
2178
2154
s = 'func(x. y .z)'
2179
2155
call = self ._parse_value (s )
@@ -2192,8 +2168,6 @@ def test_redundant_parenthesis(self):
2192
2168
self .assertEqual (type (v ).__name__ , 'BinOp' )
2193
2169
self ._check_content (s2 , v , 'a + b' )
2194
2170
2195
- # TODO: RUSTPYTHON
2196
- @unittest .expectedFailure
2197
2171
def test_trailers_with_redundant_parenthesis (self ):
2198
2172
tests = (
2199
2173
('( ( ( a ) ) ) ( )' , 'Call' ),
@@ -2211,8 +2185,6 @@ def test_trailers_with_redundant_parenthesis(self):
2211
2185
self .assertEqual (type (v ).__name__ , t )
2212
2186
self ._check_content (s2 , v , s )
2213
2187
2214
- # TODO: RUSTPYTHON
2215
- @unittest .expectedFailure
2216
2188
def test_displays (self ):
2217
2189
s1 = '[{}, {1, }, {1, 2,} ]'
2218
2190
s2 = '{a: b, f (): g () ,}'
0 commit comments