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

Method test_script_compiled

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

Source from the content-addressed store, hash-verified

683 @unittest.skipIf(sys.implementation.cache_tag is None,
684 'requires sys.implementation.cache_tag')
685 def test_script_compiled(self):
686 with temp_dir() as script_dir:
687 mod_name = 'script'
688 script_name = self._make_test_script(script_dir, mod_name)
689 compiled_name = py_compile.compile(script_name, doraise=True)
690 os.remove(script_name)
691 self._check_script(compiled_name, "<run_path>", compiled_name,
692 compiled_name, expect_spec=False)
693
694 def test_directory(self):
695 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