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

Method test_search_major_2

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

Source from the content-addressed store, hash-verified

464 self.assertEndsWith(data["env.tag"], "-32")
465
466 def test_search_major_2(self):
467 try:
468 data = self.run_py(["-2"], allow_fail=True)
469 except subprocess.CalledProcessError:
470 if not is_installed("2.7"):
471 raise unittest.SkipTest("requires at least one Python 2.x install")
472 self.assertEqual("PythonCore", data["env.company"])
473 self.assertStartsWith(data["env.tag"], "2.")
474
475 def test_py_default(self):
476 with self.py_ini(TEST_PY_DEFAULTS):

Callers

nothing calls this directly

Calls 4

run_pyMethod · 0.80
assertStartsWithMethod · 0.80
is_installedFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected