saranwrap_test: use coropool instead of CoroutinePool

This commit is contained in:
Denis Bilenko
2009-05-22 13:05:36 +07:00
parent 7e398aa72f
commit b9b75728e6

View File

@@ -22,7 +22,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
from eventlet import api, saranwrap, coros
from eventlet import api, saranwrap, coropool
import os
import sys
@@ -292,7 +292,7 @@ sys_path = sys.path""")
from greentest import saranwrap_test
prox = saranwrap.wrap(saranwrap_test)
pool = coros.CoroutinePool(max_size=4)
pool = coropool.Pool(max_size=4)
waiters = []
waiters.append(pool.execute(lambda: self.assertEquals(prox.one, 1)))
waiters.append(pool.execute(lambda: self.assertEquals(prox.two, 2)))