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

Method test_script_compiled

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

Source from the content-addressed store, hash-verified

681 script_name, expect_spec=False)
682
683 def test_script_compiled(self):
684 with temp_dir() as script_dir:
685 mod_name = 'script'
686 script_name = self._make_test_script(script_dir, mod_name)
687 compiled_name = py_compile.compile(script_name, doraise=True)
688 os.remove(script_name)
689 self._check_script(compiled_name, "<run_path>", compiled_name,
690 compiled_name, expect_spec=False)
691
692 def test_directory(self):
693 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
compileMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected