Éric Araujo added the comment:
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
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16694>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com