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

Function test_find_file_decorated2

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

Source from the content-addressed store, hash-verified

80
81
82def test_find_file_decorated2():
83
84 @decorator
85 def noop2(f, *a, **kw):
86 return f(*a, **kw)
87
88 @noop2
89 @noop2
90 @noop2
91 def f(x):
92 "My docstring 2"
93
94 match_pyfiles(oinspect.find_file(f), os.path.abspath(__file__))
95 nt.assert_equal(f.__doc__, "My docstring 2")
96
97
98def test_find_file_magic():

Callers

nothing calls this directly

Calls 1

match_pyfilesFunction · 0.85

Tested by

no test coverage detected