[issue14408] Support ./python -m unittest in the stdlib tests

Michael Foord report at bugs.python.org
Thu Mar 29 14:20:29 CEST 2012


Michael Foord <michael at voidspace.org.uk> added the comment:

Because you then have classes that inherit from object calling methods that clearly don't exist (until you subclass them *and* TestCase). It looks weird and also means the classes can't be tested in isolation.

With a class decorator the code would *look* straightforward, and the hidden attribute is just an implementation detail.

----------

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


More information about the Python-bugs-list mailing list