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

Method test_version

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

Source from the content-addressed store, hash-verified

317
318
319 def test_version(self):
320 data = self.run_py(["-0"])
321 self.assertEqual(self.py_exe, Path(data["argv0"]))
322 self.assertEqual(sys.version.partition(" ")[0], data["version"])
323
324 def test_help_option(self):
325 data = self.run_py(["-h"])

Callers

nothing calls this directly

Calls 4

PathClass · 0.90
run_pyMethod · 0.80
assertEqualMethod · 0.45
partitionMethod · 0.45

Tested by

no test coverage detected