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

Method test_zipfile

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

Source from the content-addressed store, hash-verified

715 self._check_import_error(script_dir, msg)
716
717 def test_zipfile(self):
718 with temp_dir() as script_dir:
719 mod_name = '__main__'
720 script_name = self._make_test_script(script_dir, mod_name)
721 zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
722 self._check_script(zip_name, "<run_path>", fname, zip_name,
723 mod_name=mod_name, check_loader=False)
724
725 def test_zipfile_compiled(self):
726 with temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 4

_make_test_scriptMethod · 0.95
_check_scriptMethod · 0.95
temp_dirFunction · 0.90
make_zip_scriptFunction · 0.90

Tested by

no test coverage detected