You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_itertools.py does not test infinite iterable for itertools.chain.from_iterable #93814
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_iterableis safe to use with infinite iterable, but no test exists.example:
Your environment
CPython versions tested on:
3.10.4and currentmainbranchOperating system and architecture:
N/A