@@ -83,8 +83,6 @@ def __call__(self):
83
83
# Make sure x was called.
84
84
self .assertTrue (x .called )
85
85
86
- # TODO: RUSTPYTHON - binop lineno
87
- @unittest .expectedFailure
88
86
def test_ast_line_numbers (self ):
89
87
expr = """
90
88
a = 10
@@ -116,8 +114,6 @@ def test_ast_line_numbers(self):
116
114
self .assertEqual (binop .left .col_offset , 3 )
117
115
self .assertEqual (binop .right .col_offset , 7 )
118
116
119
- # TODO: RUSTPYTHON binops lineno and col_offset
120
- @unittest .expectedFailure
121
117
def test_ast_line_numbers_multiple_formattedvalues (self ):
122
118
expr = """
123
119
f'no formatted values'
@@ -170,8 +166,6 @@ def test_ast_line_numbers_multiple_formattedvalues(self):
170
166
self .assertEqual (binop2 .left .col_offset , 23 )
171
167
self .assertEqual (binop2 .right .col_offset , 27 )
172
168
173
- # TODO: RUSTPYTHON binops lineno and col_offset
174
- @unittest .expectedFailure
175
169
def test_ast_line_numbers_nested (self ):
176
170
expr = """
177
171
a = 10
@@ -217,8 +211,6 @@ def test_ast_line_numbers_nested(self):
217
211
self .assertEqual (call .lineno , 3 )
218
212
self .assertEqual (call .col_offset , 11 )
219
213
220
- # TODO: RUSTPYTHON binops lineno and col_offset
221
- @unittest .expectedFailure
222
214
def test_ast_line_numbers_duplicate_expression (self ):
223
215
expr = """
224
216
a = 10
@@ -285,8 +277,6 @@ def test_ast_line_numbers_duplicate_expression(self):
285
277
self .assertEqual (binop .left .col_offset , 23 )
286
278
self .assertEqual (binop .right .col_offset , 27 )
287
279
288
- # TODO: RUSTPYTHON err col_offset and missing end_* attributes
289
- @unittest .expectedFailure
290
280
def test_ast_numbers_fstring_with_formatting (self ):
291
281
292
282
t = ast .parse ('f"Here is that pesky {xxx:.3f} again"' )
@@ -310,8 +300,6 @@ def test_ast_numbers_fstring_with_formatting(self):
310
300
self .assertEqual (name .col_offset , 22 )
311
301
self .assertEqual (name .end_col_offset , 25 )
312
302
313
- # TODO: RUSTPYTHON col_offset and binop lineno and col_offset
314
- @unittest .expectedFailure
315
303
def test_ast_line_numbers_multiline_fstring (self ):
316
304
# See bpo-30465 for details.
317
305
expr = """
@@ -391,8 +379,6 @@ def test_ast_line_numbers_multiline_fstring(self):
391
379
self .assertEqual (t .body [0 ].value .values [1 ].value .col_offset , 11 )
392
380
self .assertEqual (t .body [0 ].value .values [1 ].value .end_col_offset , 16 )
393
381
394
- # TODO: RUSTPYTHON lineno, col_offset, end*
395
- @unittest .expectedFailure
396
382
def test_ast_line_numbers_with_parentheses (self ):
397
383
expr = """
398
384
x = (
@@ -470,8 +456,6 @@ def test_ast_compile_time_concat(self):
470
456
exec (c )
471
457
self .assertEqual (x [0 ], 'foo3' )
472
458
473
- # TODO: RUSTPYTHON
474
- @unittest .expectedFailure
475
459
def test_compile_time_concat_errors (self ):
476
460
self .assertAllRaise (SyntaxError ,
477
461
'cannot mix bytes and nonbytes literals' ,
@@ -1083,8 +1067,6 @@ def test_del(self):
1083
1067
"del '' f''" ,
1084
1068
])
1085
1069
1086
- # TODO: RUSTPYTHON
1087
- @unittest .expectedFailure
1088
1070
def test_mismatched_braces (self ):
1089
1071
self .assertAllRaise (SyntaxError , "f-string: single '}' is not allowed" ,
1090
1072
["f'{{}'" ,
0 commit comments