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

Method test_py3_default

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

Source from the content-addressed store, hash-verified

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):
491 data = self.run_py(["-3", "-arg"])
492 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
493 self.assertEqual("3.100-arm64", data["SearchInfo.tag"])
494 self.assertEqual("X.Y-arm64.exe -X fake_arg_for_test -arg", data["stdout"].strip())
495
496 def test_py_default_env(self):
497 data = self.run_py(["-arg"], env=TEST_PY_ENV)

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