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

Function test_method

tests/test_interactivshell.py:144–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

142 """
143
144 def test_method(self):
145 testgen = testfunc(self)
146 with mock_input_helper(testgen) as mih:
147 mih.ip.interact()
148
149 if mih.exception is not None:
150 # Re-raise captured exception
151 etype, value, tb = mih.exception
152 import traceback
153
154 traceback.print_tb(tb, file=sys.stdout)
155 del tb # Avoid reference loop
156 raise value
157
158 return test_method
159

Callers

nothing calls this directly

Calls 2

mock_input_helperClass · 0.85
interactMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…