diff options
| author | Raymond Hettinger <python@rcn.com> | 2015-08-15 21:47:27 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2015-08-15 21:47:27 (GMT) |
| commit | 1cadf769b3d453777a116a1d11831ef625ebbe99 (patch) | |
| tree | 3086073764d41f0622b4f0a3c050c2456e7e7d0d /Lib/test/test_itertools.py | |
| parent | a166ce561c8c80dc892deab491ff5625cc0409c8 (diff) | |
| download | cpython-1cadf769b3d453777a116a1d11831ef625ebbe99.zip cpython-1cadf769b3d453777a116a1d11831ef625ebbe99.tar.gz cpython-1cadf769b3d453777a116a1d11831ef625ebbe99.tar.bz2 | |
Improve comment
Diffstat (limited to 'Lib/test/test_itertools.py')
| -rw-r--r-- | Lib/test/test_itertools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index c012efd..81e1711 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')) |
