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

Method test_zipfile

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

Source from the content-addressed store, hash-verified

280 self._check_import_error(script_dir, msg)
281
282 def test_zipfile(self):
283 with os_helper.temp_dir() as script_dir:
284 script_name = _make_test_script(script_dir, '__main__')
285 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
286 self._check_script(zip_name, run_name, zip_name, zip_name, '',
287 zipimport.zipimporter)
288
289 def test_zipfile_compiled_timestamp(self):
290 with os_helper.temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 3

_check_scriptMethod · 0.95
make_zip_scriptFunction · 0.90
_make_test_scriptFunction · 0.70

Tested by

no test coverage detected