Skip to content

Commit db347b3

Browse files
CPython Developersyouknowone
authored andcommitted
Update tabnanny from v3.14.2-288-g06f9c8ca1c
1 parent 95624ce commit db347b3

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

Lib/tabnanny.py

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#! /usr/bin/env python3
2-
31
"""The Tab Nanny despises ambiguous indentation. She knows no mercy.
42
53
tabnanny -- Detection of ambiguous indentation

Lib/test/test_tabnanny.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ def test_when_tokenize_tokenerror(self):
217217
with self.assertRaises(SystemExit):
218218
self.verify_tabnanny_check(file_path, err=err)
219219

220-
# TODO: RUSTPYTHON
221-
@unittest.expectedFailure
220+
@unittest.expectedFailure # TODO: RUSTPYTHON; A python source code file eligible for raising `tabnanny.NannyNag`.
222221
def test_when_nannynag_error_verbose(self):
223222
"""A python source code file eligible for raising `tabnanny.NannyNag`.
224223
@@ -232,8 +231,7 @@ def test_when_nannynag_error_verbose(self):
232231
tabnanny.verbose = 1
233232
self.verify_tabnanny_check(file_path, out=out)
234233

235-
# TODO: RUSTPYTHON
236-
@unittest.expectedFailure
234+
@unittest.expectedFailure # TODO: RUSTPYTHON; A python source code file eligible for raising `tabnanny.NannyNag`.
237235
def test_when_nannynag_error(self):
238236
"""A python source code file eligible for raising `tabnanny.NannyNag`."""
239237
with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as file_path:
@@ -318,8 +316,7 @@ def validate_cmd(self, *args, stdout="", stderr="", partial=False, expect_failur
318316
self.assertListEqual(out.splitlines(), stdout.splitlines())
319317
self.assertListEqual(err.splitlines(), stderr.splitlines())
320318

321-
# TODO: RUSTPYTHON
322-
@unittest.expectedFailure
319+
@unittest.expectedFailure # TODO: RUSTPYTHON; Should displays error when errored python file is given.
323320
def test_with_errored_file(self):
324321
"""Should displays error when errored python file is given."""
325322
with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path:
@@ -345,8 +342,7 @@ def test_quiet_flag(self):
345342
stdout = f"{file_path}\n"
346343
self.validate_cmd("-q", file_path, stdout=stdout)
347344

348-
# TODO: RUSTPYTHON
349-
@unittest.expectedFailure
345+
@unittest.expectedFailure # TODO: RUSTPYTHON
350346
def test_verbose_mode(self):
351347
"""Should display more error information if verbose mode is on."""
352348
with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as path:
@@ -355,8 +351,7 @@ def test_verbose_mode(self):
355351
).strip()
356352
self.validate_cmd("-v", path, stdout=stdout, partial=True)
357353

358-
# TODO: RUSTPYTHON
359-
@unittest.expectedFailure
354+
@unittest.expectedFailure # TODO: RUSTPYTHON
360355
def test_double_verbose_mode(self):
361356
"""Should display detailed error information if double verbose is on."""
362357
with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as path:

0 commit comments

Comments
 (0)