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

Class MutateCmp

Lib/test/test_deque.py:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 raise RuntimeError
21
22class MutateCmp:
23 def __init__(self, deque, result):
24 self.deque = deque
25 self.result = result
26 def __eq__(self, other):
27 self.deque.clear()
28 return self.result
29
30class TestBasic(unittest.TestCase):
31

Callers 3

test_containsMethod · 0.85
test_indexMethod · 0.85
test_removeMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_containsMethod · 0.68
test_indexMethod · 0.68
test_removeMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…