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

Method test_py_default

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

Source from the content-addressed store, hash-verified

473 self.assertStartsWith(data["env.tag"], "2.")
474
475 def test_py_default(self):
476 with self.py_ini(TEST_PY_DEFAULTS):
477 data = self.run_py(["-arg"])
478 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
479 self.assertEqual("3.100", data["SearchInfo.tag"])
480 self.assertEqual("X.Y.exe -arg", data["stdout"].strip())
481
482 def test_py2_default(self):
483 with self.py_ini(TEST_PY_DEFAULTS):

Callers

nothing calls this directly

Calls 4

py_iniMethod · 0.80
run_pyMethod · 0.80
assertEqualMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected