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

Method test_failures

Lib/test/test_argparse.py:314–320  ·  view source on GitHub ↗
(self, tester)

Source from the content-addressed store, hash-verified

312 return parser
313
314 def test_failures(self, tester):
315 parser = self._get_parser(tester)
316 for args_str in tester.failures:
317 args = args_str.split()
318 with tester.subTest(args=args):
319 with tester.assertRaises(ArgumentParserError, msg=args):
320 parser.parse_args(args)
321
322 def test_successes(self, tester):
323 parser = self._get_parser(tester)

Callers

nothing calls this directly

Calls 5

_get_parserMethod · 0.95
splitMethod · 0.45
subTestMethod · 0.45
assertRaisesMethod · 0.45
parse_argsMethod · 0.45

Tested by

no test coverage detected