Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
Callers
1
test_contains_count_index_stop_crashes
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_contains_count_index_stop_crashes
Method · 0.56