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

Method test_correct_directory

Lib/test/test_tabnanny.py:196–200  ·  view source on GitHub ↗

Directory which contains few error free python source code files.

(self)

Source from the content-addressed store, hash-verified

194 self.assertEqual(stderr.getvalue(), "")
195
196 def test_correct_directory(self):
197 """Directory which contains few error free python source code files."""
198 with tempfile.TemporaryDirectory() as tmp_dir:
199 with TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir):
200 self.verify_tabnanny_check(tmp_dir)
201
202 def test_when_wrong_indented(self):
203 """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