MCPcopy Index your code
hub / github.com/RustPython/RustPython / __eq__

Method __eq__

Lib/test/test_deque.py:171–173  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected