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

Method test_when_nannynag_error

Lib/test/test_tabnanny.py:232–236  ·  view source on GitHub ↗

A python source code file eligible for raising `tabnanny.NannyNag`.

(self)

Source from the content-addressed store, hash-verified

230 self.verify_tabnanny_check(file_path, out=out)
231
232 def test_when_nannynag_error(self):
233 """A python source code file eligible for raising `tabnanny.NannyNag`."""
234 with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as file_path:
235 out = f"{file_path} 3 '\\tprint(\"world\")'\n"
236 self.verify_tabnanny_check(file_path, out=out)
237
238 def test_when_no_file(self):
239 """A python file which does not exist actually in system."""

Callers

nothing calls this directly

Calls 2

verify_tabnanny_checkMethod · 0.95
TemporaryPyFileClass · 0.85

Tested by

no test coverage detected