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

Method test_zipfile

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

Source from the content-addressed store, hash-verified

268 self._check_import_error(script_dir, msg)
269
270 def test_zipfile(self):
271 with os_helper.temp_dir() as script_dir:
272 script_name = _make_test_script(script_dir, '__main__')
273 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
274 self._check_script(zip_name, run_name, zip_name, zip_name, '',
275 zipimport.zipimporter)
276
277 def test_zipfile_compiled_timestamp(self):
278 with os_helper.temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected