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

Method test_zipfile_error

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

Source from the content-addressed store, hash-verified

317 zipimport.zipimporter)
318
319 def test_zipfile_error(self):
320 with os_helper.temp_dir() as script_dir:
321 script_name = _make_test_script(script_dir, 'not_main')
322 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
323 msg = "can't find '__main__' module in %r" % zip_name
324 self._check_import_error(zip_name, msg)
325
326 def test_module_in_package(self):
327 with os_helper.temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 3

_check_import_errorMethod · 0.95
make_zip_scriptFunction · 0.90
_make_test_scriptFunction · 0.70

Tested by

no test coverage detected