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

Method test_basic_script

Lib/test/test_runpy.py:659–664  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

657 self.assertRaisesRegex(ImportError, msg, run_path, script_name)
658
659 def test_basic_script(self):
660 with temp_dir() as script_dir:
661 mod_name = 'script'
662 script_name = self._make_test_script(script_dir, mod_name)
663 self._check_script(script_name, "<run_path>", script_name,
664 script_name, expect_spec=False)
665
666 def test_basic_script_with_pathlike_object(self):
667 with temp_dir() as script_dir:

Callers

nothing calls this directly

Calls 3

_make_test_scriptMethod · 0.95
_check_scriptMethod · 0.95
temp_dirFunction · 0.90

Tested by

no test coverage detected