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

Michael Foord report at bugs.python.org
Thu Mar 29 12:01:23 CEST 2012


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

One way to exclude base classes from being loaded as tests is to have the base class *not* inherit from TestCase (just from object) - and use it as a mixin class for the actual TestCases. 

This isn't particularly elegant (but works fine). A better way of supporting this in unittest would be a reasonable request (a "not_a_test" class decorator or similar perhaps).

----------

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


More information about the Python-bugs-list mailing list