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

Method test_directory_compiled

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

Source from the content-addressed store, hash-verified

254 importlib.machinery.SourceFileLoader)
255
256 def test_directory_compiled(self):
257 with os_helper.temp_dir() as script_dir:
258 script_name = _make_test_script(script_dir, '__main__')
259 pyc_file = import_helper.make_legacy_pyc(script_name, allow_compile=True)
260 os.remove(script_name)
261 self._check_script(script_dir, pyc_file, script_dir,
262 script_dir, '',
263 importlib.machinery.SourcelessFileLoader)
264
265 def test_directory_error(self):
266 with os_helper.temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 4

_check_scriptMethod · 0.95
temp_dirMethod · 0.80
_make_test_scriptFunction · 0.70
removeMethod · 0.45

Tested by

no test coverage detected