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