Commit 77b41a28 authored by Jason Madden's avatar Jason Madden

Fix a few 'leaks' of timers. Possibly related to #1130

parent 0ac36696
...@@ -276,7 +276,7 @@ class TestCase(greentest.TestCase): ...@@ -276,7 +276,7 @@ class TestCase(greentest.TestCase):
try: try:
self.server.stop() self.server.stop()
finally: finally:
timeout.cancel() timeout.close()
# XXX currently listening socket is kept open in gevent.wsgi # XXX currently listening socket is kept open in gevent.wsgi
def connect(self): def connect(self):
...@@ -351,7 +351,7 @@ class CommonTests(TestCase): ...@@ -351,7 +351,7 @@ class CommonTests(TestCase):
read_http(fd, code=404, reason='Not Found', body='not found') read_http(fd, code=404, reason='Not Found', body='not found')
fd.close() fd.close()
finally: finally:
timeout.cancel() timeout.close()
except AssertionError as ex: except AssertionError as ex:
if ex is not exception: if ex is not exception:
raise raise
......
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