Commit f92f081c authored by Denis Bilenko's avatar Denis Bilenko

test__pool.py: fix a test not to interfere with others

parent da5ff063
......@@ -98,11 +98,12 @@ class TestCoroutinePool(TestCase):
# shouldn't block when trying to get
t = gevent.Timeout(0.1)
try:
pool.spawn(gevent.sleep, (1, ))
pool.apply(gevent.sleep, (0, ))
finally:
t.cancel()
finally:
sys.stderr = normal_err
pool.join()
class PoolBasicTests(TestCase):
......
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