MCPcopy Create free account
hub / github.com/python/cpython / test_search_major_3_32

Method test_search_major_3_32

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

Source from the content-addressed store, hash-verified

453 self.assertStartsWith(data["env.tag"], "3.")
454
455 def test_search_major_3_32(self):
456 try:
457 data = self.run_py(["-3-32"], allow_fail=True)
458 except subprocess.CalledProcessError:
459 if not any(is_installed(f"3.{i}-32") for i in range(5, 11)):
460 raise unittest.SkipTest("requires at least one 32-bit Python 3.x install")
461 raise
462 self.assertEqual("PythonCore", data["env.company"])
463 self.assertStartsWith(data["env.tag"], "3.")
464 self.assertEndsWith(data["env.tag"], "-32")
465
466 def test_search_major_2(self):
467 try:

Callers

nothing calls this directly

Calls 6

run_pyMethod · 0.80
assertStartsWithMethod · 0.80
assertEndsWithMethod · 0.80
is_installedFunction · 0.70
anyFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected