paul j3 added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to