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

Method assertArgumentParserError

Lib/test/test_argparse.py:2517–2518  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

2515 """Test the add_subparsers method"""
2516
2517 def assertArgumentParserError(self, *args, **kwargs):
2518 self.assertRaises(ArgumentParserError, *args, **kwargs)
2519
2520 def _get_parser(self, subparser_help=False, prefix_chars=None,
2521 aliases=False, usage=None):

Calls 1

assertRaisesMethod · 0.45

Tested by

no test coverage detected