[issue13953] Get rid of doctests in packaging.tests.test_version

Éric Araujo report at bugs.python.org
Sat Feb 11 05:56:32 CET 2012


Éric Araujo <merwok at netwok.org> added the comment:

Thanks, I’ve got it from that point.

Notes for future patches:
- Tests should not check the exact contents of error messages, as they are not part of the language
- Don’t use assertEqual(..., True) but assertTrue, or if you’re testing comparisons, use assertGreater and friends (or check the result of sorted(somelist) to compare a bunch of objects at once)

----------
Added file: http://bugs.python.org/file24482/cleanup-test_version.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13953>
_______________________________________


More information about the Python-bugs-list mailing list