[issue10273] Clean-up Unittest API
report at bugs.python.org
Thu Nov 25 23:56:46 CET 2010
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
> * Moving the docs for type specific equality methods inside the docs for assertEqual to emphasize that those get dispatched automatically and need not be called directly.
I already fixed this on py3k, adding a section where the type-specific methods are described and added a reference in the assertEqual description. I also clarified that usually there's no need to call them directly even thought I don't see why they shouldn't do it if they want to use a specific test.
> * Changing assertRegexpMatches to assertRegex
And assertNotRegexpMatches -> assertNotRegex, assertRaisesRegexp -> assertRaisesRegex, assertWarnsRegexp -> assertWarnRegex?
Will the *Regexp forms be deprecated too?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list