saranwrap_test: use coropool instead of CoroutinePool
This commit is contained in:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user