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

Method _make_test_script

Lib/test/test_runpy.py:603–608  ·  view source on GitHub ↗
(self, script_dir, script_basename,
                          source=None, omit_suffix=False)

Source from the content-addressed store, hash-verified

601 """Unit tests for runpy.run_path"""
602
603 def _make_test_script(self, script_dir, script_basename,
604 source=None, omit_suffix=False):
605 if source is None:
606 source = example_source
607 return make_script(script_dir, script_basename,
608 source, omit_suffix)
609
610 def _check_script(self, script_name, expected_name, expected_file,
611 expected_argv0, mod_name=None,

Callers 11

test_basic_scriptMethod · 0.95
test_script_compiledMethod · 0.95
test_directoryMethod · 0.95
test_directory_errorMethod · 0.95
test_zipfileMethod · 0.95
test_zipfile_compiledMethod · 0.95
test_zipfile_errorMethod · 0.95

Calls 1

make_scriptFunction · 0.90

Tested by

no test coverage detected