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

Class A

Lib/test/test_deque.py:170–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169 def test_contains_count_index_stop_crashes(self):
170 class A:
171 def __eq__(self, other):
172 d.clear()
173 return NotImplemented
174 d = deque([A(), A()])
175 with self.assertRaises(RuntimeError):
176 _ = 3 in d

Calls

no outgoing calls