Message177908
| Author |
eric.araujo |
| Recipients |
Arfrever, brett.cannon, eric.araujo, jcea, serhiy.storchaka, zach.ware |
| Date |
2012年12月21日.23:28:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1356132525.59.0.966507552724.issue16694@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The base test class should not inherit from TestCase: it will be picked up by test discovery and then will break, as self.module will be None.
Typical usage:
class OperatorTestsMixin:
module = None
class COperatorTests(OperatorTestsMixin, unittest.TestCase):
module = _operator |
|