[issue14534] Add method to mark unittest.TestCases as "do not run".
Zachary Ware
report at bugs.python.org
Tue Jun 17 18:56:53 CEST 2014
Zachary Ware added the comment:
What if we simply rename the current unittest.TestCase class to unittest.BaseTestCase, and define unittest.TestCase as "class TestCase(BaseTestCase): pass"? Then mixin classes can derive from BaseTestCase and have all of the TestCase methods available (for auto-completion, etc.), but won't be picked up by discovery. Real test classes would derive from TestCase as usual (but would still have to do so explicitly when also using a mixin), and all current code should work without modification.
----------
nosy: +zach.ware
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14534>
_______________________________________
More information about the Python-bugs-list
mailing list