Commit 272c1b9e authored by Denis Bilenko's avatar Denis Bilenko

greentest: execute cleanup() if present

parent f5054487
......@@ -59,6 +59,8 @@ class TestCase(BaseTestCase):
self._timer = gevent.Timeout.start_new(self.__timeout__, RuntimeError('test is taking too long'))
def tearDown(self):
if hasattr(self, 'cleanup'):
self.cleanup()
try:
if not hasattr(self, 'stderr'):
self.unhook_stderr()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment