Skip to content

test_itertools.py does not test infinite iterable for itertools.chain.from_iterable #93814

Closed
@youknowone

Description

@youknowone

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.4 and current main branch

  • Operating system and architecture:
    N/A

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions