Commit be22cc6e authored by Denis Bilenko's avatar Denis Bilenko

test__socket.py: use cleanup() instead of tearDown()

parent 79c8c870
......@@ -16,9 +16,8 @@ class TestTCP(greentest.TestCase):
greentest.TestCase.setUp(self)
self.listener = greentest.tcp_listener(('127.0.0.1', 0))
def tearDown(self):
def cleanup(self):
del self.listener
greentest.TestCase.tearDown(self)
def create_connection(self):
return socket.create_connection(('127.0.0.1', self.listener.getsockname()[1]))
......
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