Message252240
The unittest file test_argparse.py tests add_argument parameters in
class TestInvalidArgumentConstructors(TestCase)
It looks at a dozen different categories of errors, mostly checking that they return the correct TypeError or ValueError. It does not check the content of error messages.
If I change the code I described yesterday to return a TypeError again (but with an enhanced message), it passes this unittest.
Most of the test_argparse.py tests just check for error type. There just a couple of late additions that check error message content:
TestMessageContentError
TestAddArgumentMetavar |
|
Date |
User |
Action |
Args |
2015-10-03 21:13:17 | paul.j3 | set | recipients:
+ paul.j3, r.david.murray, docs@python, A. Skrobov |
2015-10-03 21:13:17 | paul.j3 | set | messageid: <1443906797.23.0.140315886069.issue25299@psf.upfronthosting.co.za> |
2015-10-03 21:13:17 | paul.j3 | link | issue25299 messages |
2015-10-03 21:13:17 | paul.j3 | create | |
|