|
14 | 14 | findfile) |
15 | 15 | from test.support.os_helper import unlink |
16 | 16 |
|
| 17 | +import unittest # XXX: RUSTPYTHON |
| 18 | + |
17 | 19 |
|
18 | 20 | SOURCE_CODES = { |
19 | 21 | "incomplete_expression": ( |
@@ -197,6 +199,8 @@ def test_correct_directory(self): |
197 | 199 | with TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir): |
198 | 200 | self.verify_tabnanny_check(tmp_dir) |
199 | 201 |
|
| 202 | + # TODO: RUSTPYTHON |
| 203 | + @unittest.expectedFailure |
200 | 204 | def test_when_wrong_indented(self): |
201 | 205 | """A python source code file eligible for raising `IndentationError`.""" |
202 | 206 | with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path: |
@@ -231,13 +235,17 @@ def test_when_nannynag_error(self): |
231 | 235 | out = f"{file_path} 3 '\\tprint(\"world\")\\n'\n" |
232 | 236 | self.verify_tabnanny_check(file_path, out=out) |
233 | 237 |
|
| 238 | + # TODO: RUSTPYTHON |
| 239 | + @unittest.expectedFailure |
234 | 240 | def test_when_no_file(self): |
235 | 241 | """A python file which does not exist actually in system.""" |
236 | 242 | path = 'no_file.py' |
237 | 243 | err = (f"{path!r}: I/O Error: [Errno {errno.ENOENT}] " |
238 | 244 | f"{os.strerror(errno.ENOENT)}: {path!r}\n") |
239 | 245 | self.verify_tabnanny_check(path, err=err) |
240 | 246 |
|
| 247 | + # TODO: RUSTPYTHON |
| 248 | + @unittest.expectedFailure |
241 | 249 | def test_errored_directory(self): |
242 | 250 | """Directory containing wrongly indented python source code files.""" |
243 | 251 | with tempfile.TemporaryDirectory() as tmp_dir: |
@@ -304,6 +312,8 @@ def validate_cmd(self, *args, stdout="", stderr="", partial=False): |
304 | 312 | self.assertListEqual(out.splitlines(), stdout.splitlines()) |
305 | 313 | self.assertListEqual(err.splitlines(), stderr.splitlines()) |
306 | 314 |
|
| 315 | + # TODO: RUSTPYTHON |
| 316 | + @unittest.expectedFailure |
307 | 317 | def test_with_errored_file(self): |
308 | 318 | """Should displays error when errored python file is given.""" |
309 | 319 | with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path: |
|
0 commit comments