Commit 47f96024 authored by Denis Bilenko's avatar Denis Bilenko

test__pool.py: add test for Issue 36: TypeError raised from...

test__pool.py: add test for Issue 36: TypeError raised from pool.join(raise_error=True). Original patch by David Hain.
parent c28650ea
......@@ -270,6 +270,14 @@ class TestJoinSleep(greentest.GenericWaitTestCase):
p.join(timeout=timeout)
class TestJoinSleep_raise_error(greentest.GenericWaitTestCase):
def wait(self, timeout):
p = pool.Pool()
p.spawn(gevent.sleep, 10)
p.join(timeout=timeout, raise_error=True)
class TestJoinEmpty(greentest.TestCase):
switch_expected = False
......
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