mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update tabnanny from v3.14.2-288-g06f9c8ca1c
This commit is contained in:
1 parent
167cc79601
commit
4564ad27d7
2 files changed
+5
-12
No files matched your search
-2
@@ -1,5 +1,3 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
"""The Tab Nanny despises ambiguous indentation. She knows no mercy.
|
||||
|
||||
tabnanny -- Detection of ambiguous indentation
|
||||
|
||||
Vendored
+5
-10
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user