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

Method test_parse_args_failures

Lib/test/test_argparse.py:2584–2589  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2582 self.command_help_parser = self._get_parser(subparser_help=True)
2583
2584 def test_parse_args_failures(self):
2585 # check some failure cases:
2586 for args_str in ['', 'a', 'a a', '0.5 a', '0.5 1',
2587 '0.5 1 -y', '0.5 2 -w']:
2588 args = args_str.split()
2589 self.assertArgumentParserError(self.parser.parse_args, args)
2590
2591 def test_parse_args_failures_details(self):
2592 for args_str, usage_str, error_str in [

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45

Tested by

no test coverage detected