Skip to content

Commit cc202e1

Browse files
committed
Mark failing tests for test_tabnanny
1 parent 216fcd8 commit cc202e1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Lib/test/test_tabnanny.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
findfile)
1515
from test.support.os_helper import unlink
1616

17+
import unittest # XXX: RUSTPYTHON
18+
1719

1820
SOURCE_CODES = {
1921
"incomplete_expression": (
@@ -197,6 +199,8 @@ def test_correct_directory(self):
197199
with TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir):
198200
self.verify_tabnanny_check(tmp_dir)
199201

202+
# TODO: RUSTPYTHON
203+
@unittest.expectedFailure
200204
def test_when_wrong_indented(self):
201205
"""A python source code file eligible for raising `IndentationError`."""
202206
with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path:
@@ -231,13 +235,17 @@ def test_when_nannynag_error(self):
231235
out = f"{file_path} 3 '\\tprint(\"world\")\\n'\n"
232236
self.verify_tabnanny_check(file_path, out=out)
233237

238+
# TODO: RUSTPYTHON
239+
@unittest.expectedFailure
234240
def test_when_no_file(self):
235241
"""A python file which does not exist actually in system."""
236242
path = 'no_file.py'
237243
err = (f"{path!r}: I/O Error: [Errno {errno.ENOENT}] "
238244
f"{os.strerror(errno.ENOENT)}: {path!r}\n")
239245
self.verify_tabnanny_check(path, err=err)
240246

247+
# TODO: RUSTPYTHON
248+
@unittest.expectedFailure
241249
def test_errored_directory(self):
242250
"""Directory containing wrongly indented python source code files."""
243251
with tempfile.TemporaryDirectory() as tmp_dir:
@@ -304,6 +312,8 @@ def validate_cmd(self, *args, stdout="", stderr="", partial=False):
304312
self.assertListEqual(out.splitlines(), stdout.splitlines())
305313
self.assertListEqual(err.splitlines(), stderr.splitlines())
306314

315+
# TODO: RUSTPYTHON
316+
@unittest.expectedFailure
307317
def test_with_errored_file(self):
308318
"""Should displays error when errored python file is given."""
309319
with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path:

0 commit comments

Comments
 (0)