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

Method test_py_default_in_list

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

Source from the content-addressed store, hash-verified

521 self.assertEqual("X.Y.exe --version", data["stdout"].strip())
522
523 def test_py_default_in_list(self):
524 data = self.run_py(["-0"], env=TEST_PY_ENV)
525 default = None
526 for line in data["stdout"].splitlines():
527 m = re.match(r"\s*-V:(.+?)\s+?\*\s+(.+)$", line)
528 if m:
529 default = m.group(1)
530 break
531 self.assertEqual("PythonTestSuite/3.100", default)
532
533 def test_virtualenv_in_list(self):
534 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