MCPcopy Index your code
hub / github.com/python/cpython / test_gh_128961

Method test_gh_128961

Lib/test/test_array.py:1775–1780  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1773 self.assertEqual(ls[-8:], list(example[-8:]))
1774
1775 def test_gh_128961(self):
1776 a = array.array('i')
1777 it = iter(a)
1778 list(it)
1779 it.__setstate__(0)
1780 self.assertRaises(StopIteration, next, it)
1781
1782 # Tests for NULL pointer dereference in array.__setitem__
1783 # when the index conversion mutates the array.

Callers

nothing calls this directly

Calls 3

listClass · 0.85
__setstate__Method · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected