summaryrefslogtreecommitdiff
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-11-29 10:47:22 -0800
committerGitHub <noreply@github.com>2020-11-29 10:47:22 -0800
commitfc40b3020cf3c869833fd5d3720cf9768fe3bb46 (patch)
treed26f4c98a5be6d428e25797f9cbf9189da30205f /Lib/test/test_itertools.py
parent86684319d3dad8e1a7b0559727a48e0bc50afb01 (diff)
downloadcpython-git-fc40b3020cf3c869833fd5d3720cf9768fe3bb46.tar.gz
bpo-42450: Minor updates to the itertools recipes (GH-23555)
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r--Lib/test/test_itertools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index eaa6197bec..702cf08203 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -2290,7 +2290,7 @@ Samuele
... "Count how many times the predicate is true"
... return sum(map(pred, iterable))
->>> def padnone(iterable):
+>>> def pad_none(iterable):
... "Returns the sequence elements and then returns None indefinitely"
... return chain(iterable, repeat(None))
@@ -2460,7 +2460,7 @@ True
>>> list(pairwise('a'))
[]
->>> list(islice(padnone('abc'), 0, 6))
+>>> list(islice(pad_none('abc'), 0, 6))
['a', 'b', 'c', None, None, None]
>>> list(ncycles('abc', 3))