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

Method test_zipfile_compiled

Lib/test/test_runpy.py:725–734  ·  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 = script_name + 'c'
730 py_compile.compile(script_name, compiled_name, doraise=True)
731 zip_name, fname = make_zip_script(script_dir, 'test_zip',
732 compiled_name)
733 self._check_script(zip_name, "<run_path>", fname, zip_name,
734 mod_name=mod_name, check_loader=False)
735
736 def test_zipfile_error(self):
737 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