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

Function test_calldef_none

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

Source from the content-addressed store, hash-verified

222 """A simple function."""
223
224def test_calldef_none():
225 # We should ignore __call__ for all of these.
226 for obj in [support_function_one, SimpleClass().method, any, str.upper]:
227 i = inspector.info(obj)
228 nt.assert_is(i['call_def'], None)
229
230def f_kwarg(pos, *, kwonly):
231 pass

Callers

nothing calls this directly

Calls 2

SimpleClassClass · 0.85
infoMethod · 0.80

Tested by

no test coverage detected