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

Method test_directory_error

Lib/test/test_cmd_line_script.py:265–268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

263 importlib.machinery.SourcelessFileLoader)
264
265 def test_directory_error(self):
266 with os_helper.temp_dir() as script_dir:
267 msg = "can't find '__main__' module in %r" % script_dir
268 self._check_import_error(script_dir, msg)
269
270 def test_zipfile(self):
271 with os_helper.temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 2

_check_import_errorMethod · 0.95
temp_dirMethod · 0.80

Tested by

no test coverage detected