R. David Murray added the comment:

Well, part of the point of the tests is to make sure the module's behavior 
doesn't change when doing the conversion to argparse.  But "behavior changing" 
doesn't extend to the exact format of the output...that can change, as long as 
what the module *does* given specific cli argument combinations stays the same. 
 Ideally, you write the tests so that it is not sensitive to the exact output, 
but realistically some tests may need to be different between the optparse case 
and the argparse case to get good coverage.

Note that even with good tests, you can still miss behavior changes.  We tried 
to do a good job on the tests for compileall, for example, and we still 
introduced a bug or two when we converted to argparse.

----------
nosy: +r.david.murray

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

Reply via email to