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

Method test_version

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

Source from the content-addressed store, hash-verified

310
311
312 def test_version(self):
313 data = self.run_py(["-0"])
314 self.assertEqual(self.py_exe, Path(data["argv0"]))
315 self.assertEqual(sys.version.partition(" ")[0], data["version"])
316
317 def test_help_option(self):
318 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