Ezio Melotti added the comment:
The attached patch adds the list of args to the output of assertRaises in case
of error, e.g.:
FAIL: test_failures_one_group_sysargs
(test.test_argparse.TestPositionalsNargsZeroOrMoreNone)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/wolf/dev/py/3.3/Lib/test/test_argparse.py", line 216, in wrapper
test_func(self)
File "/home/wolf/dev/py/3.3/Lib/test/test_argparse.py", line 236, in
test_failures
parser.parse_args(args)
AssertionError: ArgumentParserError not raised : ['foo', 'bar']
----------
keywords: +patch
nosy: +ezio.melotti
stage: -> patch review
versions: +Python 3.4
Added file: http://bugs.python.org/file29280/issue11955.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11955>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com