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

Method test_correct_directory

Lib/test/test_tabnanny.py:197–201  ·  view source on GitHub ↗

Directory which contains few error free python source code files.

(self)

Source from the content-addressed store, hash-verified

195 self.assertEqual(stderr.getvalue(), "")
196
197 def test_correct_directory(self):
198 """Directory which contains few error free python source code files."""
199 with tempfile.TemporaryDirectory() as tmp_dir:
200 with TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir):
201 self.verify_tabnanny_check(tmp_dir)
202
203 def test_when_wrong_indented(self):
204 """A python source code file eligible for raising `IndentationError`."""

Callers

nothing calls this directly

Calls 2

verify_tabnanny_checkMethod · 0.95
TemporaryPyFileClass · 0.85

Tested by

no test coverage detected