Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-93814: Add infinite test for itertools.chain.from_iterable #93815

Merged
merged 1 commit into from Jun 14, 2022

Conversation

youknowone
Copy link
Contributor

@youknowone youknowone commented Jun 14, 2022

fix #93814

Automerge-Triggered-By: GH:rhettinger

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Jun 14, 2022

Thanks for the PR, but I don't think it adds any value. There is nothing about the iterator protocol that differentiates between infinite iterators and partially consumed iterators. So, we're not increasing test coverage in any way.

Please see the comment on the GitHub issue.

@rhettinger rhettinger closed this Jun 14, 2022
@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Jun 14, 2022

After more thought, there may be some value to this test in that it checks that the input iterable is consumed lazily; otherwise, this test would never finish. There may be more economical ways to write this test, but the one proposed will suffice.

@rhettinger rhettinger reopened this Jun 14, 2022
@rhettinger rhettinger added the 🤖 automerge label Jun 14, 2022
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 14, 2022

Status check is done, and it's a success .

@miss-islington miss-islington merged commit 274769c into python:main Jun 14, 2022
20 checks passed
@youknowone youknowone deleted the itertools-chain-infinite branch Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 automerge skip news tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants