Message183245
| Author |
ezio.melotti |
| Recipients |
Jason.Vas.Dias, bethard, eric.araujo, ezio.melotti, r.david.murray |
| Date |
2013年03月01日.08:47:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1362127640.56.0.976561682507.issue11955@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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'] |
|