[issue14534] Add method to mark unittest.TestCases as "do not run".
Antoine Pitrou
report at bugs.python.org
Mon Apr 9 22:47:56 CEST 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
> So the technique I suggested is that the TestLoader checks classes for
> the "testbase" (or whatever we call it) *in the class dict*. So
> inheritance doesn't matter - a class is only excluded from test
> loading if it has the attribute directly.
Why not document the official recommendation in the docs?
Adding another gimmick isn't very useful. It doesn't add a
functionality. It doesn't even make it significantly easier to write
tests (unless you have more test classes than test methods). And it
means that people have to remember two idioms instead of one.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14534>
_______________________________________
More information about the Python-bugs-list
mailing list