@@ -2351,10 +2351,10 @@ def test_imap_handle_iterable_exception(self): |
|
|
2351 |
2351 |
self.assertRaises(SayWhenError, it.__next__) |
2352 |
2352 |
|
2353 |
2353 |
def test_imap_unordered(self): |
2354 |
|
-it = self.pool.imap_unordered(sqr, list(range(1000))) |
2355 |
|
-self.assertEqual(sorted(it), list(map(sqr, list(range(1000))))) |
|
2354 |
+it = self.pool.imap_unordered(sqr, list(range(10))) |
|
2355 |
+self.assertEqual(sorted(it), list(map(sqr, list(range(10))))) |
2356 |
2356 |
|
2357 |
|
-it = self.pool.imap_unordered(sqr, list(range(1000)), chunksize=53) |
|
2357 |
+it = self.pool.imap_unordered(sqr, list(range(1000)), chunksize=100) |
2358 |
2358 |
self.assertEqual(sorted(it), list(map(sqr, list(range(1000))))) |
2359 |
2359 |
|
2360 |
2360 |
def test_imap_unordered_handle_iterable_exception(self): |