@@ -388,6 +388,8 @@ def test_invalid_position_information(self):
388
388
with self .assertRaises (ValueError ):
389
389
compile (tree , '<string>' , 'exec' )
390
390
391
+ # XXX RUSTPYTHON: we always require that end ranges be present
392
+ @unittest .expectedFailure
391
393
def test_compilation_of_ast_nodes_with_default_end_position_values (self ):
392
394
tree = ast .Module (body = [
393
395
ast .Import (names = [ast .alias (name = 'builtins' , lineno = 1 , col_offset = 0 )], lineno = 1 , col_offset = 0 ),
@@ -1531,6 +1533,8 @@ def test_literal_eval_malformed_dict_nodes(self):
1531
1533
malformed = ast .Dict (keys = [ast .Constant (1 )], values = [ast .Constant (2 ), ast .Constant (3 )])
1532
1534
self .assertRaises (ValueError , ast .literal_eval , malformed )
1533
1535
1536
+ # TODO: RUSTPYTHON
1537
+ @unittest .expectedFailure
1534
1538
def test_literal_eval_trailing_ws (self ):
1535
1539
self .assertEqual (ast .literal_eval (" -1" ), - 1 )
1536
1540
self .assertEqual (ast .literal_eval ("\t \t -1" ), - 1 )
@@ -1549,6 +1553,8 @@ def test_literal_eval_malformed_lineno(self):
1549
1553
with self .assertRaisesRegex (ValueError , msg ):
1550
1554
ast .literal_eval (node )
1551
1555
1556
+ # TODO: RUSTPYTHON
1557
+ @unittest .expectedFailure
1552
1558
def test_literal_eval_syntax_errors (self ):
1553
1559
with self .assertRaisesRegex (SyntaxError , "unexpected indent" ):
1554
1560
ast .literal_eval (r'''
@@ -1569,6 +1575,8 @@ def test_bad_integer(self):
1569
1575
compile (mod , 'test' , 'exec' )
1570
1576
self .assertIn ("invalid integer value: None" , str (cm .exception ))
1571
1577
1578
+ # XXX RUSTPYTHON: we always require that end ranges be present
1579
+ @unittest .expectedFailure
1572
1580
def test_level_as_none (self ):
1573
1581
body = [ast .ImportFrom (module = 'time' ,
1574
1582
names = [ast .alias (name = 'sleep' ,
@@ -2034,8 +2042,6 @@ def test_call(self):
2034
2042
call = ast .Call (func , args , bad_keywords )
2035
2043
self .expr (call , "must have Load context" )
2036
2044
2037
- # TODO: RUSTPYTHON
2038
- @unittest .expectedFailure
2039
2045
def test_num (self ):
2040
2046
with warnings .catch_warnings (record = True ) as wlog :
2041
2047
warnings .filterwarnings ('ignore' , '' , DeprecationWarning )
@@ -2733,8 +2739,6 @@ def test_source_segment_multi(self):
2733
2739
binop = self ._parse_value (s_orig )
2734
2740
self .assertEqual (ast .get_source_segment (s_orig , binop .left ), s_tuple )
2735
2741
2736
- # TODO: RUSTPYTHON
2737
- @unittest .expectedFailure
2738
2742
def test_source_segment_padded (self ):
2739
2743
s_orig = dedent ('''
2740
2744
class C:
@@ -2756,8 +2760,6 @@ def test_source_segment_endings(self):
2756
2760
self ._check_content (s , y , 'y = 1' )
2757
2761
self ._check_content (s , z , 'z = 1' )
2758
2762
2759
- # TODO: RUSTPYTHON
2760
- @unittest .expectedFailure
2761
2763
def test_source_segment_tabs (self ):
2762
2764
s = dedent ('''
2763
2765
class C:
0 commit comments