#11955: merge with 3.4.

This commit is contained in:
Ezio Melotti 2014-08-05 02:24:28 +03:00
commit 0020d8e4fd
1 changed files with 2 additions and 2 deletions

View File

@ -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)