MCPcopy Index your code
hub / github.com/ipython/ipython / Fail

Class Fail

tests/test_hooks.py:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29
30class Fail(object):
31 def __init__(self, message):
32 self.message = message
33 self.called = False
34
35 def __call__(self):
36 self.called = True
37 raise TryNext(self.message)
38
39
40# -----------------------------------------------------------------------------

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…