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

Method test_basic_script

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

Source from the content-addressed store, hash-verified

218 self.check_repl_stderr_flush(True)
219
220 def test_basic_script(self):
221 with os_helper.temp_dir() as script_dir:
222 script_name = _make_test_script(script_dir, 'script')
223 self._check_script(script_name, script_name, script_name,
224 script_dir, None,
225 importlib.machinery.SourceFileLoader,
226 expected_cwd=script_dir)
227
228 def test_script_abspath(self):
229 # pass the script using the relative path, expect the absolute path

Callers

nothing calls this directly

Calls 3

_check_scriptMethod · 0.95
temp_dirMethod · 0.80
_make_test_scriptFunction · 0.70

Tested by

no test coverage detected