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

Function test_find_file_decorated1

IPython/core/tests/test_oinspect.py:66–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def test_find_file_decorated1():
67
68 @decorator
69 def noop1(f):
70 def wrapper(*a, **kw):
71 return f(*a, **kw)
72 return wrapper
73
74 @noop1
75 def f(x):
76 "My docstring"
77
78 match_pyfiles(oinspect.find_file(f), os.path.abspath(__file__))
79 nt.assert_equal(f.__doc__, "My docstring")
80
81
82def test_find_file_decorated2():

Callers

nothing calls this directly

Calls 1

match_pyfilesFunction · 0.85

Tested by

no test coverage detected