@@ -135,6 +135,8 @@ class TestPy2MigrationHint(unittest.TestCase):
135
135
if print statement is executed as in Python 2.
136
136
"""
137
137
138
+ # TODO: RUSTPYTHON
139
+ @unittest .expectedFailure
138
140
def test_normal_string (self ):
139
141
python2_print_str = 'print "Hello World"'
140
142
with self .assertRaises (SyntaxError ) as context :
@@ -143,6 +145,8 @@ def test_normal_string(self):
143
145
self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
144
146
str (context .exception ))
145
147
148
+ # TODO: RUSTPYTHON
149
+ @unittest .expectedFailure
146
150
def test_string_with_soft_space (self ):
147
151
python2_print_str = 'print "Hello World",'
148
152
with self .assertRaises (SyntaxError ) as context :
@@ -151,6 +155,8 @@ def test_string_with_soft_space(self):
151
155
self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
152
156
str (context .exception ))
153
157
158
+ # TODO: RUSTPYTHON
159
+ @unittest .expectedFailure
154
160
def test_string_with_excessive_whitespace (self ):
155
161
python2_print_str = 'print "Hello World", '
156
162
with self .assertRaises (SyntaxError ) as context :
@@ -159,6 +165,8 @@ def test_string_with_excessive_whitespace(self):
159
165
self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
160
166
str (context .exception ))
161
167
168
+ # TODO: RUSTPYTHON
169
+ @unittest .expectedFailure
162
170
def test_string_with_leading_whitespace (self ):
163
171
python2_print_str = '''if 1:
164
172
print "Hello World"
@@ -172,6 +180,9 @@ def test_string_with_leading_whitespace(self):
172
180
# bpo-32685: Suggestions for print statement should be proper when
173
181
# it is in the same line as the header of a compound statement
174
182
# and/or followed by a semicolon
183
+
184
+ # TODO: RUSTPYTHON
185
+ @unittest .expectedFailure
175
186
def test_string_with_semicolon (self ):
176
187
python2_print_str = 'print p;'
177
188
with self .assertRaises (SyntaxError ) as context :
@@ -180,6 +191,8 @@ def test_string_with_semicolon(self):
180
191
self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
181
192
str (context .exception ))
182
193
194
+ # TODO: RUSTPYTHON
195
+ @unittest .expectedFailure
183
196
def test_string_in_loop_on_same_line (self ):
184
197
python2_print_str = 'for i in s: print i'
185
198
with self .assertRaises (SyntaxError ) as context :
@@ -188,6 +201,8 @@ def test_string_in_loop_on_same_line(self):
188
201
self .assertIn ("Missing parentheses in call to 'print'. Did you mean print(...)" ,
189
202
str (context .exception ))
190
203
204
+ # TODO: RUSTPYTHON
205
+ @unittest .expectedFailure
191
206
def test_stream_redirection_hint_for_py2_migration (self ):
192
207
# Test correct hint produced for Py2 redirection syntax
193
208
with self .assertRaises (TypeError ) as context :
0 commit comments