Skip to content

Commit c995f37

Browse files
committed
Add failing markers to test_future
1 parent aa7d548 commit c995f37

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Lib/test/test_future.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,41 +38,57 @@ def test_future3(self):
3838
with import_helper.CleanImport('test_future3'):
3939
from test import test_future3
4040

41+
# TODO: RUSTPYTHON
42+
@unittest.expectedFailure
4143
def test_badfuture3(self):
4244
with self.assertRaises(SyntaxError) as cm:
4345
from test import badsyntax_future3
4446
self.check_syntax_error(cm.exception, "badsyntax_future3", 3)
4547

48+
# TODO: RUSTPYTHON
49+
@unittest.expectedFailure
4650
def test_badfuture4(self):
4751
with self.assertRaises(SyntaxError) as cm:
4852
from test import badsyntax_future4
4953
self.check_syntax_error(cm.exception, "badsyntax_future4", 3)
5054

55+
# TODO: RUSTPYTHON
56+
@unittest.expectedFailure
5157
def test_badfuture5(self):
5258
with self.assertRaises(SyntaxError) as cm:
5359
from test import badsyntax_future5
5460
self.check_syntax_error(cm.exception, "badsyntax_future5", 4)
5561

62+
# TODO: RUSTPYTHON
63+
@unittest.expectedFailure
5664
def test_badfuture6(self):
5765
with self.assertRaises(SyntaxError) as cm:
5866
from test import badsyntax_future6
5967
self.check_syntax_error(cm.exception, "badsyntax_future6", 3)
6068

69+
# TODO: RUSTPYTHON
70+
@unittest.expectedFailure
6171
def test_badfuture7(self):
6272
with self.assertRaises(SyntaxError) as cm:
6373
from test import badsyntax_future7
6474
self.check_syntax_error(cm.exception, "badsyntax_future7", 3, 53)
6575

76+
# TODO: RUSTPYTHON
77+
@unittest.expectedFailure
6678
def test_badfuture8(self):
6779
with self.assertRaises(SyntaxError) as cm:
6880
from test import badsyntax_future8
6981
self.check_syntax_error(cm.exception, "badsyntax_future8", 3)
7082

83+
# TODO: RUSTPYTHON
84+
@unittest.expectedFailure
7185
def test_badfuture9(self):
7286
with self.assertRaises(SyntaxError) as cm:
7387
from test import badsyntax_future9
7488
self.check_syntax_error(cm.exception, "badsyntax_future9", 3)
7589

90+
# TODO: RUSTPYTHON
91+
@unittest.expectedFailure
7692
def test_badfuture10(self):
7793
with self.assertRaises(SyntaxError) as cm:
7894
from test import badsyntax_future10
@@ -349,13 +365,17 @@ def test_infinity_numbers(self):
349365
self.assertAnnotationEqual("('inf', 1e1000, 'infxxx', 1e1000j)", expected=f"('inf', {inf}, 'infxxx', {infj})")
350366
self.assertAnnotationEqual("(1e1000, (1e1000j,))", expected=f"({inf}, ({infj},))")
351367

368+
# TODO: RUSTPYTHON
369+
@unittest.expectedFailure
352370
def test_annotation_with_complex_target(self):
353371
with self.assertRaises(SyntaxError):
354372
exec(
355373
"from __future__ import annotations\n"
356374
"object.__debug__: int"
357375
)
358376

377+
# TODO: RUSTPYTHON
378+
@unittest.expectedFailure
359379
def test_annotations_symbol_table_pass(self):
360380
namespace = self._exec_future(dedent("""
361381
from __future__ import annotations
@@ -372,6 +392,8 @@ def bar():
372392
self.assertEqual(foo.__code__.co_cellvars, ())
373393
self.assertEqual(foo().__code__.co_freevars, ())
374394

395+
# TODO: RUSTPYTHON
396+
@unittest.expectedFailure
375397
def test_annotations_forbidden(self):
376398
with self.assertRaises(SyntaxError):
377399
self._exec_future("test: (yield)")

0 commit comments

Comments
 (0)