Seems like some class in the inheriting chain is not calling setUp, so I would recommend fixing that instead of the proposed hasattr call:
25 class TestCase(BaseTestCase): 26 """Basics for testing.""" 27 28 assertIs = BaseTestCase.assertIdentical 29 30 def setUp(self): 31 self._called = False
« Back to merge proposal
Seems like some class in the inheriting chain is not calling setUp, so I would recommend fixing that instead of the proposed hasattr call:
25 class TestCase( BaseTestCase) : assertIdentical
26 """Basics for testing."""
27
28 assertIs = BaseTestCase.
29
30 def setUp(self):
31 self._called = False