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

Method _make_test_script

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

Source from the content-addressed store, hash-verified

602 """Unit tests for runpy.run_path"""
603
604 def _make_test_script(self, script_dir, script_basename,
605 source=None, omit_suffix=False):
606 if source is None:
607 source = example_source
608 return make_script(script_dir, script_basename,
609 source, omit_suffix)
610
611 def _check_script(self, script_name, expected_name, expected_file,
612 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