@@ -1315,6 +1315,8 @@ def _check_error(self, code, errtext,
13151315 else :
13161316 self .fail ("compile() did not raise SyntaxError" )
13171317
1318+ # TODO: RUSTPYTHON
1319+ @unittest .expectedFailure
13181320 def test_expression_with_assignment (self ):
13191321 self ._check_error (
13201322 "print(end1 + end2 = ' ')" ,
@@ -1328,6 +1330,8 @@ def test_curly_brace_after_primary_raises_immediately(self):
13281330 def test_assign_call (self ):
13291331 self ._check_error ("f() = 1" , "assign" )
13301332
1333+ # TODO: RUSTPYTHON
1334+ @unittest .expectedFailure
13311335 def test_assign_del (self ):
13321336 self ._check_error ("del (,)" , "invalid syntax" )
13331337 self ._check_error ("del 1" , "cannot delete literal" )
@@ -1458,11 +1462,15 @@ def test_kwargs_last3(self):
14581462 "iterable argument unpacking follows "
14591463 "keyword argument unpacking" )
14601464
1465+ # TODO: RUSTPYTHON
1466+ @unittest .expectedFailure
14611467 def test_generator_in_function_call (self ):
14621468 self ._check_error ("foo(x, y for y in range(3) for z in range(2) if z , p)" ,
14631469 "Generator expression must be parenthesized" ,
14641470 lineno = 1 , end_lineno = 1 , offset = 11 , end_offset = 53 )
14651471
1472+ # TODO: RUSTPYTHON
1473+ @unittest .expectedFailure
14661474 def test_empty_line_after_linecont (self ):
14671475 # See issue-40847
14681476 s = r"""\
@@ -1516,6 +1524,8 @@ def test_nested_named_except_blocks(self):
15161524 code += f"{ ' ' * 4 * 12 } pass"
15171525 self ._check_error (code , "too many statically nested blocks" )
15181526
1527+ # TODO: RUSTPYTHON
1528+ @unittest .expectedFailure
15191529 def test_barry_as_flufl_with_syntax_errors (self ):
15201530 # The "barry_as_flufl" rule can produce some "bugs-at-a-distance" if
15211531 # is reading the wrong token in the presence of syntax errors later
@@ -1544,6 +1554,7 @@ def test_invalid_line_continuation_error_position(self):
15441554 "unexpected character after line continuation character" ,
15451555 lineno = 3 , offset = 4 )
15461556
1557+
15471558 def test_invalid_line_continuation_left_recursive (self ):
15481559 # Check bpo-42218: SyntaxErrors following left-recursive rules
15491560 # (t_primary_raw in this case) need to be tested explicitly
@@ -1552,6 +1563,8 @@ def test_invalid_line_continuation_left_recursive(self):
15521563 self ._check_error ("A.\u03bc \\ \n " ,
15531564 "unexpected EOF while parsing" )
15541565
1566+ # TODO: RUSTPYTHON
1567+ @unittest .expectedFailure
15551568 def test_error_parenthesis (self ):
15561569 for paren in "([{" :
15571570 self ._check_error (paren + "1 + 2" , f"\\ { paren } ' was never closed" )
0 commit comments