MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_when_nannynag_error

Method test_when_nannynag_error

Lib/test/test_tabnanny.py:235–239  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

233
234 @unittest.expectedFailure # TODO: RUSTPYTHON; A python source code file eligible for raising `tabnanny.NannyNag`.
235 def test_when_nannynag_error(self):
236 """A python source code file eligible for raising `tabnanny.NannyNag`."""
237 with TemporaryPyFile(SOURCE_CODES["nannynag_errored"]) as file_path:
238 out = f"{file_path} 3 '\\tprint(\"world\")'\n"
239 self.verify_tabnanny_check(file_path, out=out)
240
241 def test_when_no_file(self):
242 """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