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

Method test_no_version

Lib/test/test_optparse.py:961–964  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

959 sys.argv[:] = save_argv
960
961 def test_no_version(self):
962 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE)
963 self.assertParseFail(["--version"],
964 "no such option: --version")
965
966# -- Test conflicting default values and parser.parse_args() -----------
967

Callers

nothing calls this directly

Calls 2

assertParseFailMethod · 0.80

Tested by

no test coverage detected