Commit 7c9563c3 authored by Denis Bilenko's avatar Denis Bilenko

test__hub.py: do not leak a greenlet

parent d3bc57d6
......@@ -189,9 +189,10 @@ class TestWaiter(greentest.GenericWaitTestCase):
self.assertRaises(ZeroDivisionError, waiter.get)
waiter = Waiter()
gevent.spawn(waiter.get)
g = gevent.spawn(waiter.get)
gevent.sleep(0)
assert str(waiter).startswith('<Waiter greenlet=<Greenlet at '), str(waiter)
g.kill()
if __name__ == '__main__':
......
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