@@ -2085,10 +2085,10 @@ def test_imap_handle_iterable_exception(self): |
|
|
2085 |
2085 |
self.assertRaises(SayWhenError, it.__next__) |
2086 |
2086 |
|
2087 |
2087 |
def test_imap_unordered(self): |
2088 |
|
-it = self.pool.imap_unordered(sqr, list(range(1000))) |
2089 |
|
-self.assertEqual(sorted(it), list(map(sqr, list(range(1000))))) |
|
2088 |
+it = self.pool.imap_unordered(sqr, list(range(10))) |
|
2089 |
+self.assertEqual(sorted(it), list(map(sqr, list(range(10))))) |
2090 |
2090 |
|
2091 |
|
-it = self.pool.imap_unordered(sqr, list(range(1000)), chunksize=53) |
|
2091 |
+it = self.pool.imap_unordered(sqr, list(range(1000)), chunksize=100) |
2092 |
2092 |
self.assertEqual(sorted(it), list(map(sqr, list(range(1000))))) |
2093 |
2093 |
|
2094 |
2094 |
def test_imap_unordered_handle_iterable_exception(self): |