@@ -135,6 +135,8 @@ class TestPy2MigrationHint(unittest.TestCase):
135135 if print statement is executed as in Python 2.
136136 """
137137
138+ # TODO: RUSTPYTHON
139+ @unittest .expectedFailure
138140 def test_normal_string (self ):
139141 python2_print_str = 'print "Hello World"'
140142 with self .assertRaises (SyntaxError ) as context :
@@ -143,6 +145,8 @@ def test_normal_string(self):
143145 self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
144146 str (context .exception ))
145147
148+ # TODO: RUSTPYTHON
149+ @unittest .expectedFailure
146150 def test_string_with_soft_space (self ):
147151 python2_print_str = 'print "Hello World",'
148152 with self .assertRaises (SyntaxError ) as context :
@@ -151,6 +155,8 @@ def test_string_with_soft_space(self):
151155 self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
152156 str (context .exception ))
153157
158+ # TODO: RUSTPYTHON
159+ @unittest .expectedFailure
154160 def test_string_with_excessive_whitespace (self ):
155161 python2_print_str = 'print "Hello World", '
156162 with self .assertRaises (SyntaxError ) as context :
@@ -159,6 +165,8 @@ def test_string_with_excessive_whitespace(self):
159165 self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
160166 str (context .exception ))
161167
168+ # TODO: RUSTPYTHON
169+ @unittest .expectedFailure
162170 def test_string_with_leading_whitespace (self ):
163171 python2_print_str = '''if 1:
164172 print "Hello World"
@@ -172,6 +180,9 @@ def test_string_with_leading_whitespace(self):
172180 # bpo-32685: Suggestions for print statement should be proper when
173181 # it is in the same line as the header of a compound statement
174182 # and/or followed by a semicolon
183+
184+ # TODO: RUSTPYTHON
185+ @unittest .expectedFailure
175186 def test_string_with_semicolon (self ):
176187 python2_print_str = 'print p;'
177188 with self .assertRaises (SyntaxError ) as context :
@@ -180,6 +191,8 @@ def test_string_with_semicolon(self):
180191 self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
181192 str (context .exception ))
182193
194+ # TODO: RUSTPYTHON
195+ @unittest .expectedFailure
183196 def test_string_in_loop_on_same_line (self ):
184197 python2_print_str = 'for i in s: print i'
185198 with self .assertRaises (SyntaxError ) as context :
@@ -188,6 +201,8 @@ def test_string_in_loop_on_same_line(self):
188201 self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
189202 str (context .exception ))
190203
204+ # TODO: RUSTPYTHON
205+ @unittest .expectedFailure
191206 def test_stream_redirection_hint_for_py2_migration (self ):
192207 # Test correct hint produced for Py2 redirection syntax
193208 with self .assertRaises (TypeError ) as context :
0 commit comments