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

Method test_zipfile_error

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

Source from the content-addressed store, hash-verified

305 zipimport.zipimporter)
306
307 def test_zipfile_error(self):
308 with os_helper.temp_dir() as script_dir:
309 script_name = _make_test_script(script_dir, 'not_main')
310 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
311 msg = "can't find '__main__' module in %r" % zip_name
312 self._check_import_error(zip_name, msg)
313
314 def test_module_in_package(self):
315 with os_helper.temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 4

_check_import_errorMethod · 0.95
make_zip_scriptFunction · 0.90
temp_dirMethod · 0.80
_make_test_scriptFunction · 0.70

Tested by

no test coverage detected