`test_itertools.py` does not test infinite iterable for `itertools.chain.from_iterable` · Issue #93814 · python/cpython
Bug report
itertools.chain.from_iterable is safe to use with infinite iterable, but no test exists.
example:
chain.from_iterable(repeat(range(5)))
Your environment
-
CPython versions tested on:
3.10.4and currentmainbranch -
Operating system and architecture:
N/A