summaryrefslogtreecommitdiff
path: root/tests/test_termui.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2015-12-13 20:59:58 +0100
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2015-12-13 20:59:58 +0100
commit725b5208af0a30ab0273d6ae1cdc05ce94a616c4 (patch)
tree1283c2de11b22f57320c373bc5eb25a9ed643502 /tests/test_termui.py
parent11a662df615c302e50a5d387df0803cbe2398d43 (diff)
downloadclick-725b5208af0a30ab0273d6ae1cdc05ce94a616c4.tar.gz
length hint test: ensure iterator compatibility for older python versions
Diffstat (limited to 'tests/test_termui.py')
-rw-r--r--tests/test_termui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_termui.py b/tests/test_termui.py
index fa24658..762163a 100644
--- a/tests/test_termui.py
+++ b/tests/test_termui.py
@@ -31,6 +31,8 @@ def test_progressbar_length_hint(runner, monkeypatch):
else:
raise StopIteration
+ next = __next__
+
@click.command()
def cli():
with click.progressbar(Hinted(10), label='test') as progress: