summaryrefslogtreecommitdiffhomepage
path: root/libs/tqdm/tests/tests_itertools.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/tqdm/tests/tests_itertools.py')
-rw-r--r--libs/tqdm/tests/tests_itertools.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/libs/tqdm/tests/tests_itertools.py b/libs/tqdm/tests/tests_itertools.py
deleted file mode 100644
index c55e07db8..000000000
--- a/libs/tqdm/tests/tests_itertools.py
+++ /dev/null
@@ -1,27 +0,0 @@
-"""
-Tests for `tqdm.contrib.itertools`.
-"""
-from tqdm.contrib.itertools import product
-from tests_tqdm import with_setup, pretest, posttest, StringIO, closing
-import itertools
-
-
-class NoLenIter(object):
- def __init__(self, iterable):
- self._it = iterable
-
- def __iter__(self):
- for i in self._it:
- yield i
-
-
-@with_setup(pretest, posttest)
-def test_product():
- """Test contrib.itertools.product"""
- with closing(StringIO()) as our_file:
- a = range(9)
- assert list(product(a, a[::-1], file=our_file)) == \
- list(itertools.product(a, a[::-1]))
-
- assert list(product(a, NoLenIter(a), file=our_file)) == \
- list(itertools.product(a, NoLenIter(a)))