[Python-checkins] cpython (merge 3.4 -> default): #11955: merge with 3.4.
ezio.melotti
python-checkins at python.org
Tue Aug 5 01:24:54 CEST 2014
http://hg.python.org/cpython/rev/25e634756f79
changeset: 92000:25e634756f79
parent: 91997:f78ef3819d67
parent: 91999:9a410ae785ff
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Tue Aug 05 02:24:28 2014 +0300
summary:
#11955: merge with 3.4.
files:
Lib/test/test_argparse.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -226,8 +226,8 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list