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

Method test_py_default

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

Source from the content-addressed store, hash-verified

466 self.assertStartsWith(data["env.tag"], "2.")
467
468 def test_py_default(self):
469 with self.py_ini(TEST_PY_DEFAULTS):
470 data = self.run_py(["-arg"])
471 self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
472 self.assertEqual("3.100", data["SearchInfo.tag"])
473 self.assertEqual("X.Y.exe -arg", data["stdout"].strip())
474
475 def test_py2_default(self):
476 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