8000 gh-128961: Fix exhausted array iterator crash in `__setstate__` by tom-pytel · Pull Request #128962 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-128961: Fix exhausted array iterator crash in __setstate__ #128962

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

Merged
merged 7 commits into from
Jan 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test raise StopIteration after gh-128961
  • Loading branch information
tom-pytel committed Jan 17, 2025
commit 8eab735e46d3ad83d78fb57c1427055a0f588a49
1 change: 1 addition & 0 deletions Lib/test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,7 @@ def test_gh_128961(self):
it = iter(a)
list(it)
it.__setstate__(0)
self.assertRaises(StopIteration, lambda: next(it))

if __name__ == "__main__":
unittest.main()
Loading
0