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

Method test_sinkstate_sequence

Lib/test/test_iter.py:1040–1046  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1038 self.assertEqual(list(b), [])
1039
1040 def test_sinkstate_sequence(self):
1041 # This used to fail
1042 a = SequenceClass(5)
1043 b = iter(a)
1044 self.assertEqual(list(b), list(range(5)))
1045 a.n = 10
1046 self.assertEqual(list(b), [])
1047
1048 def test_sinkstate_callable(self):
1049 # This used to fail

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.95
listClass · 0.85
SequenceClassClass · 0.70

Tested by

no test coverage detected