pools: add doctest runner at the end

This commit is contained in:
Denis Bilenko
2009-05-22 13:03:31 +07:00
parent 42325e47f2
commit b6a989a1e5

View File

@@ -668,3 +668,7 @@ class CoroutinePool(Pool):
while finished < index + 1:
yield q.wait()
finished += 1
if __name__=='__main__':
import doctest
doctest.testmod()