8000 bpo-45018: Fix rangeiter_reduce in rangeobject.c by chilaxan · Pull Request #27938 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
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
I got overly excited with the additional asserts 🤦
  • Loading branch information
ambv committed Aug 26, 2021
commit 2d5783485bab25c58a95248ec035fe7f6d610fb5
2 changes: 1 addition & 1 deletion Lib/test/test_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def test_iterator_pickling_overflowing_index(self):
self.assertEqual(idx, 0)
it.__setstate__(2**32 + 1) # undocumented way to set r->index
_, _, idx = it.__reduce__()
self.assertEqual(idx, 2**32)
self.assertEqual(idx, 2**32 + 1)
d = pickle.dumps(it, proto)
it = pickle.loads(d)
self.assertEqual(next(it), 2**32 + 1)
Expand Down
0