Commit ab084386 authored by Denis Bilenko's avatar Denis Bilenko

simplify an expression. Patch by Ralf Schmitt

parent 6cbc8aa7
......@@ -227,7 +227,7 @@ class TestPool(greentest.TestCase):
self.assertEqual(sorted(it), map(sqr, range(1000)))
def test_terminate(self):
result = self.pool.map_async(gevent.sleep, [0.1 for i in range(1000)])
result = self.pool.map_async(gevent.sleep, [0.1] * 1000)
kill = TimingWrapper(self.pool.kill)
kill(block=True)
assert kill.elapsed < 0.5, kill.elapsed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment