Commit c0be5c8a authored by Denis Bilenko's avatar Denis Bilenko

test__threadpool.py: small test for refcount

parent cafd79c7
......@@ -336,5 +336,18 @@ class SomeClass(object):
return result
def func():
pass
class TestRefCount(TestCase):
def test(self):
pool = ThreadPool(1)
pool.spawn(func)
gevent.sleep(0)
pool.kill()
if __name__ == '__main__':
greentest.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