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

Method test_py2_default

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

Source from the content-addressed store, hash-verified

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):
484 data = self.run_py(["-2", "-arg"])
485 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
486 self.assertEqual("3.100-32", data["SearchInfo.tag"])
487 self.assertEqual("X.Y-32.exe -arg", data["stdout"].strip())
488
489 def test_py3_default(self):
490 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