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

Method test_search_major_2

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

Source from the content-addressed store, hash-verified

457 self.assertEndsWith(data["env.tag"], "-32")
458
459 def test_search_major_2(self):
460 try:
461 data = self.run_py(["-2"], allow_fail=True)
462 except subprocess.CalledProcessError:
463 if not is_installed("2.7"):
464 raise unittest.SkipTest("requires at least one Python 2.x install")
465 self.assertEqual("PythonCore", data["env.company"])
466 self.assertStartsWith(data["env.tag"], "2.")
467
468 def test_py_default(self):
469 with self.py_ini(TEST_PY_DEFAULTS):

Callers

nothing calls this directly

Calls 4

is_installedFunction · 0.85
run_pyMethod · 0.80
assertEqualMethod · 0.45
assertStartsWithMethod · 0.45

Tested by

no test coverage detected