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

Method test_directory_compiled

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

Source from the content-addressed store, hash-verified

699 script_dir, mod_name=mod_name)
700
701 def test_directory_compiled(self):
702 with temp_dir() as script_dir:
703 mod_name = '__main__'
704 script_name = self._make_test_script(script_dir, mod_name)
705 legacy_pyc = make_legacy_pyc(script_name, allow_compile=True)
706 os.remove(script_name)
707 self._check_script(script_dir, "<run_path>", legacy_pyc,
708 script_dir, mod_name=mod_name)
709
710 def test_directory_error(self):
711 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_legacy_pycFunction · 0.90
removeMethod · 0.45

Tested by

no test coverage detected