Unittest islice_extended impact on iterated elements lifecycle#996
Merged
bbayles merged 3 commits intomore-itertools:masterfrom Jun 2, 2025
Merged
Conversation
unit test the current behavior of islice_extended on the iterated elements lifecycle. this is a follow up for the fix of issue more-itertools#994
Contributor
Author
|
Coverage failed on |
- Pypy does not count references. It fully relies on garbage collection - force a garbage collection on non-CPython interpreter.
no excuse.
Contributor
Author
|
|
Contributor
|
I've taken a quick look at the code for IteratorWithWeakReferences, TestCase, and the loop in test_elements_lifecycle that runs them all. It all seems good. Well done Ben getting it to run on PyPy too. |
bbayles
approved these changes
Jun 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unittest the current behavior/impact of islice_extended on the iterated elements lifecycle.
Issue reference
This is a follow up for:
Changes
Added unit test
tests.test_more.IsliceExtendedTests.test_elements_lifecycleChecks and tests