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

Method test_nargs_invalid_float_value

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

Source from the content-addressed store, hash-verified

910 ["xyz"])
911
912 def test_nargs_invalid_float_value(self):
913 self.assertParseFail(["-p", "1.0", "2x", "3.5"],
914 "option -p: "
915 "invalid floating-point value: '2x'")
916
917 def test_nargs_required_values(self):
918 self.assertParseFail(["--point", "1.0", "3.5"],

Callers

nothing calls this directly

Calls 1

assertParseFailMethod · 0.80

Tested by

no test coverage detected