Message291978
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. |
|
Date |
User |
Action |
Args |
2017-04-20 14:56:42 | r.david.murray | set | recipients:
+ r.david.murray, georg.brandl, bethard, vstinner, ezio.melotti, serhiy.storchaka, wolma, louielu |
2017-04-20 14:56:42 | r.david.murray | set | messageid: <1492700202.56.0.1224984439.issue18971@psf.upfronthosting.co.za> |
2017-04-20 14:56:42 | r.david.murray | link | issue18971 messages |
2017-04-20 14:56:42 | r.david.murray | create | |
|