Skip to content

Commit 8eab735

Browse files
committed
test raise StopIteration after gh-128961
1 parent d6610b7 commit 8eab735

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_array.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,7 @@ def test_gh_128961(self):
16701670
it = iter(a)
16711671
list(it)
16721672
it.__setstate__(0)
1673+
self.assertRaises(StopIteration, lambda: next(it))
16731674

16741675
if __name__ == "__main__":
16751676
unittest.main()

0 commit comments

Comments
 (0)