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