Update tabnanny from v3.14.2-288-g06f9c8ca1c

This commit is contained in:
CPython Developers authored and Jeong, YunWon committed 2026-02-02 11:51:53 +09:00
1 parent 95624ce818
commit db347b344d
2 files changed
+5 -12

No files matched your search

Vendored Executable → Regular
-2
View File
@@ -1,5 +1,3 @@
#! /usr/bin/env python3
"""The Tab Nanny despises ambiguous indentation. She knows no mercy.
tabnanny -- Detection of ambiguous indentation
+5 -10
View File
@@ -217,8 +217,7 @@ class TestCheck(TestCase):
with self.assertRaises(SystemExit):
self.verify_tabnanny_check(file_path, err=err)
# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON; A python source code file eligible for raising `tabnanny.NannyNag`.
def test_when_nannynag_error_verbose(self):
"""A python source code file eligible for raising `tabnanny.NannyNag`.
@@ -232,8 +231,7 @@ class TestCheck(TestCase):
tabnanny.verbose = 1
self.verify_tabnanny_check(file_path, out=out)
# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON; A python source code file eligible for raising `tabnanny.NannyNag`.
def test_when_nannynag_error(self):
"""A python source code file eligible for raising `tabnanny.NannyNag`."""
with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as file_path:
@@ -318,8 +316,7 @@ class TestCommandLine(TestCase):
self.assertListEqual(out.splitlines(), stdout.splitlines())
self.assertListEqual(err.splitlines(), stderr.splitlines())
# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON; Should displays error when errored python file is given.
def test_with_errored_file(self):
"""Should displays error when errored python file is given."""
with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path:
@@ -345,8 +342,7 @@ class TestCommandLine(TestCase):
stdout = f"{file_path}\n"
self.validate_cmd("-q", file_path, stdout=stdout)
# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_verbose_mode(self):
"""Should display more error information if verbose mode is on."""
with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as path:
@@ -355,8 +351,7 @@ class TestCommandLine(TestCase):
).strip()
self.validate_cmd("-v", path, stdout=stdout, partial=True)
# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_double_verbose_mode(self):
"""Should display detailed error information if double verbose is on."""
with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as path: