From 074e4b3144883cad2f39a5975d5b2310d38f52bc Mon Sep 17 00:00:00 2001 From: JaeyoungAhn Date: Sun, 26 Mar 2023 12:27:58 +0900 Subject: [PATCH] add TODOs --- Lib/test/test_print.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Lib/test/test_print.py b/Lib/test/test_print.py index 5f1bfd9e3..8445a501c 100644 --- a/Lib/test/test_print.py +++ b/Lib/test/test_print.py @@ -135,6 +135,8 @@ class TestPy2MigrationHint(unittest.TestCase): if print statement is executed as in Python 2. """ + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_normal_string(self): python2_print_str = 'print "Hello World"' with self.assertRaises(SyntaxError) as context: @@ -143,6 +145,8 @@ class TestPy2MigrationHint(unittest.TestCase): self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)", str(context.exception)) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_string_with_soft_space(self): python2_print_str = 'print "Hello World",' with self.assertRaises(SyntaxError) as context: @@ -151,6 +155,8 @@ class TestPy2MigrationHint(unittest.TestCase): self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)", str(context.exception)) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_string_with_excessive_whitespace(self): python2_print_str = 'print "Hello World", ' with self.assertRaises(SyntaxError) as context: @@ -159,6 +165,8 @@ class TestPy2MigrationHint(unittest.TestCase): self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)", str(context.exception)) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_string_with_leading_whitespace(self): python2_print_str = '''if 1: print "Hello World" @@ -172,6 +180,9 @@ class TestPy2MigrationHint(unittest.TestCase): # bpo-32685: Suggestions for print statement should be proper when # it is in the same line as the header of a compound statement # and/or followed by a semicolon + + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_string_with_semicolon(self): python2_print_str = 'print p;' with self.assertRaises(SyntaxError) as context: @@ -180,6 +191,8 @@ class TestPy2MigrationHint(unittest.TestCase): self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)", str(context.exception)) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_string_in_loop_on_same_line(self): python2_print_str = 'for i in s: print i' with self.assertRaises(SyntaxError) as context: @@ -188,6 +201,8 @@ class TestPy2MigrationHint(unittest.TestCase): self.assertIn("Missing parentheses in call to 'print'. Did you mean print(...)", str(context.exception)) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_stream_redirection_hint_for_py2_migration(self): # Test correct hint produced for Py2 redirection syntax with self.assertRaises(TypeError) as context: