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

Method test_long_invalid_integer

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

Source from the content-addressed store, hash-verified

659 self.assertParseFail(["--boo13"], "no such option: --boo13")
660
661 def test_long_invalid_integer(self):
662 self.assertParseFail(["--boo=x5"],
663 "option --boo: invalid integer value: 'x5'")
664
665 def test_empty(self):
666 self.assertParseOK([], {'a': None, 'boo': None, 'foo': None}, [])

Callers

nothing calls this directly

Calls 1

assertParseFailMethod · 0.80

Tested by

no test coverage detected