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

Function inner

IPython/core/tests/test_ultratb.py:39–52  ·  view source on GitHub ↗
(test_function)

Source from the content-addressed store, hash-verified

37 """
38
39 def inner(test_function):
40 def wrapper(*args, **kwargs):
41 _orig_rec_limit = ultratb._FRAME_RECURSION_LIMIT
42 ultratb._FRAME_RECURSION_LIMIT = 50
43
44 rl = sys.getrecursionlimit()
45 sys.setrecursionlimit(frames)
46 try:
47 return test_function(*args, **kwargs)
48 finally:
49 sys.setrecursionlimit(rl)
50 ultratb._FRAME_RECURSION_LIMIT = _orig_rec_limit
51
52 return wrapper
53
54 return inner
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected