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

Method test_invalid_integer

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

Source from the content-addressed store, hash-verified

652 self.assertParseFail(["-a"], "-a option requires 1 argument")
653
654 def test_invalid_integer(self):
655 self.assertParseFail(["-b", "5x"],
656 "option -b: invalid integer value: '5x'")
657
658 def test_no_such_option(self):
659 self.assertParseFail(["--boo13"], "no such option: --boo13")

Callers

nothing calls this directly

Calls 1

assertParseFailMethod · 0.80

Tested by

no test coverage detected