MCPcopy Index your code
hub / github.com/python/cpython / test_verbose_mode

Method test_verbose_mode

Lib/test/test_tabnanny.py:341–347  ·  view source on GitHub ↗

Should display more error information if verbose mode is on.

(self)

Source from the content-addressed store, hash-verified

339 self.validate_cmd("-q", file_path, stdout=stdout)
340
341 def test_verbose_mode(self):
342 """Should display more error information if verbose mode is on."""
343 with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as path:
344 stdout = textwrap.dedent(
345 "offending line: '\\tprint(\"world\")'"
346 ).strip()
347 self.validate_cmd("-v", path, stdout=stdout, partial=True)
348
349 def test_double_verbose_mode(self):
350 """Should display detailed error information if double verbose is on."""

Callers

nothing calls this directly

Calls 4

validate_cmdMethod · 0.95
TemporaryPyFileClass · 0.85
stripMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected