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

Method test_directory_compiled

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

Source from the content-addressed store, hash-verified

265 importlib.machinery.SourceFileLoader)
266
267 def test_directory_compiled(self):
268 with os_helper.temp_dir() as script_dir:
269 script_name = _make_test_script(script_dir, '__main__')
270 py_compile.compile(script_name, doraise=True)
271 os.remove(script_name)
272 pyc_file = import_helper.make_legacy_pyc(script_name)
273 self._check_script(script_dir, pyc_file, script_dir,
274 script_dir, '',
275 importlib.machinery.SourcelessFileLoader)
276
277 def test_directory_error(self):
278 with os_helper.temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 4

_check_scriptMethod · 0.95
_make_test_scriptFunction · 0.70
compileMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected