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

Method test_when_no_file

Lib/test/test_tabnanny.py:241–247  ·  view source on GitHub ↗

A python file which does not exist actually in system.

(self)

Source from the content-addressed store, hash-verified

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."""
243 path = 'no_file.py'
244 err = (f"{path!r}: I/O Error: [Errno {errno.ENOENT}] "
245 f"{os.strerror(errno.ENOENT)}: {path!r}\n")
246 with self.assertRaises(SystemExit):
247 self.verify_tabnanny_check(path, err=err)
248
249 def test_errored_directory(self):
250 """Directory containing wrongly indented python source code files."""

Callers

nothing calls this directly

Calls 3

verify_tabnanny_checkMethod · 0.95
strerrorMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected