test_itertools.py does not test infinite iterable for itertools.chain.from_iterable · Issue #93814 · python/cpython (original) (raw)

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