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

Method test_py_default_in_list

Lib/test/test_launcher.py:516–524  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

514 self.assertEqual("X.Y.exe --version", data["stdout"].strip())
515
516 def test_py_default_in_list(self):
517 data = self.run_py(["-0"], env=TEST_PY_ENV)
518 default = None
519 for line in data["stdout"].splitlines():
520 m = re.match(r"\s*-V:(.+?)\s+?\*\s+(.+)$", line)
521 if m:
522 default = m.group(1)
523 break
524 self.assertEqual("PythonTestSuite/3.100", default)
525
526 def test_virtualenv_in_list(self):
527 with self.fake_venv() as (venv_exe, env):

Callers

nothing calls this directly

Calls 5

run_pyMethod · 0.80
splitlinesMethod · 0.45
matchMethod · 0.45
groupMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected