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

Method test_zipfile_compiled

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

Source from the content-addressed store, hash-verified

723 mod_name=mod_name, check_loader=False)
724
725 def test_zipfile_compiled(self):
726 with temp_dir() as script_dir:
727 mod_name = '__main__'
728 script_name = self._make_test_script(script_dir, mod_name)
729 compiled_name = py_compile.compile(script_name, doraise=True)
730 zip_name, fname = make_zip_script(script_dir, 'test_zip',
731 compiled_name)
732 self._check_script(zip_name, "<run_path>", fname, zip_name,
733 mod_name=mod_name, check_loader=False)
734
735 def test_zipfile_error(self):
736 with temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 5

_make_test_scriptMethod · 0.95
_check_scriptMethod · 0.95
temp_dirFunction · 0.90
make_zip_scriptFunction · 0.90
compileMethod · 0.45

Tested by

no test coverage detected