Message220844
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. |
|
Date |
User |
Action |
Args |
2014-06-17 16:56:53 | zach.ware | set | recipients:
+ zach.ware, pitrou, kristjan.jonsson, stutzbach, eric.araujo, r.david.murray, michael.foord, BreamoreBoy |
2014-06-17 16:56:53 | zach.ware | set | messageid: <1403024213.16.0.480902660928.issue14534@psf.upfronthosting.co.za> |
2014-06-17 16:56:53 | zach.ware | link | issue14534 messages |
2014-06-17 16:56:52 | zach.ware | create | |
|