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

Method test_script_compiled

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

Source from the content-addressed store, hash-verified

238 importlib.machinery.SourceFileLoader)
239
240 def test_script_compiled(self):
241 with os_helper.temp_dir() as script_dir:
242 script_name = _make_test_script(script_dir, 'script')
243 pyc_file = import_helper.make_legacy_pyc(script_name, allow_compile=True)
244 os.remove(script_name)
245 self._check_script(pyc_file, pyc_file,
246 pyc_file, script_dir, None,
247 importlib.machinery.SourcelessFileLoader)
248
249 def test_directory(self):
250 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