From: Raymond Hettinger Date: Sat, 15 Aug 2015 21:47:27 +0000 (-0700) Subject: Improve comment X-Git-Tag: v3.6.0a1~1784 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cadf769b3d453777a116a1d11831ef625ebbe99;p=python Improve comment --- diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index c012efd752..81e1711d21 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -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'))