#11955: merge with 3.4.
This commit is contained in:
commit
0020d8e4fd
|
@ -226,8 +226,8 @@ class ParserTesterMetaclass(type):
|
|||
parser = self._get_parser(tester)
|
||||
for args_str in tester.failures:
|
||||
args = args_str.split()
|
||||
raises = tester.assertRaises
|
||||
raises(ArgumentParserError, parser.parse_args, args)
|
||||
with tester.assertRaises(ArgumentParserError, msg=args):
|
||||
parser.parse_args(args)
|
||||
|
||||
def test_successes(self, tester):
|
||||
parser = self._get_parser(tester)
|
||||
|
|
Loading…
Reference in New Issue