]> granicus.if.org Git - python/commitdiff
Improve comment
authorRaymond Hettinger <python@rcn.com>
Sat, 15 Aug 2015 21:47:27 +0000 (14:47 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 15 Aug 2015 21:47:27 +0000 (14:47 -0700)
Lib/test/test_itertools.py

index c012efd752e447e4f6f49b913718c89c60a33a13..81e1711d212b59716212f8f31ab9163d49db4353 100644 (file)
@@ -617,7 +617,7 @@ class TestBasicOps(unittest.TestCase):
             # test with partial consumed input iterable
             it = iter('abcde')
             c = cycle(it)
-            _ = [next(c) for i in range(2)]      # consume to 2 of 5 inputs
+            _ = [next(c) for i in range(2)]      # consume 2 of 5 inputs
             p = pickle.dumps(c, proto)
             d = pickle.loads(p)                  # rebuild the cycle object
             self.assertEqual(take(20, d), list('cdeabcdeabcdeabcdeab'))
@@ -625,7 +625,7 @@ class TestBasicOps(unittest.TestCase):
             # test with completely consumed input iterable
             it = iter('abcde')
             c = cycle(it)
-            _ = [next(c) for i in range(7)]      # consume to 7 of 5 inputs
+            _ = [next(c) for i in range(7)]      # consume 7 of 5 inputs
             p = pickle.dumps(c, proto)
             d = pickle.loads(p)                  # rebuild the cycle object
             self.assertEqual(take(20, d), list('cdeabcdeabcdeabcdeab'))