The test will prevent a potential regression to evaluate given iterable before consuming.
Please let me know if there is a test already covers a huge iterator.
I found test_long_chain_of_empty_iterables is a similar one, but it doesn't fully prevent it.
Bug report
itertools.chain.from_iterable
is safe to use with infinite iterable, but no test exists.example:
Your environment
CPython versions tested on:
3.10.4
and currentmain
branchOperating system and architecture:
N/A
The text was updated successfully, but these errors were encountered: