Commit f9e9c1a1 authored by Denis Bilenko's avatar Denis Bilenko

test__server.py: proper cleanup to pass totalrefcount check

parent d9a9bfe5
......@@ -64,10 +64,10 @@ class TestCase(greentest.TestCase):
__timeout__ = 10
def tearDown(self):
greentest.TestCase.tearDown(self)
if hasattr(self, 'server'):
def cleanup(self):
if getattr(self, 'server', None) is not None:
self.server.stop()
self.server = None
def get_listener(self):
sock = socket.socket()
......
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