MCPcopy Create free account
hub / github.com/ipython/ipython / test_method

Function test_method

IPython/terminal/tests/test_interactivshell.py:96–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 will see as if they were typed in at the prompt.
95 """
96 def test_method(self):
97 testgen = testfunc(self)
98 with mock_input_helper(testgen) as mih:
99 mih.ip.interact()
100
101 if mih.exception is not None:
102 # Re-raise captured exception
103 etype, value, tb = mih.exception
104 import traceback
105 traceback.print_tb(tb, file=sys.stdout)
106 del tb # Avoid reference loop
107 raise value
108
109 return test_method
110

Callers

nothing calls this directly

Calls 2

mock_input_helperClass · 0.85
interactMethod · 0.80

Tested by

no test coverage detected