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

Method test_directory_error

Lib/test/test_runpy.py:710–715  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

708 script_dir, mod_name=mod_name)
709
710 def test_directory_error(self):
711 with temp_dir() as script_dir:
712 mod_name = 'not_main'
713 script_name = self._make_test_script(script_dir, mod_name)
714 msg = "can't find '__main__' module in %r" % script_dir
715 self._check_import_error(script_dir, msg)
716
717 def test_zipfile(self):
718 with temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 3

_make_test_scriptMethod · 0.95
_check_import_errorMethod · 0.95
temp_dirFunction · 0.90

Tested by

no test coverage detected