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

Function test_pinfo_docstring_no_source

IPython/core/tests/test_oinspect.py:332–337  ·  view source on GitHub ↗

Docstring should be included with detail_level=1 if there is no source

()

Source from the content-addressed store, hash-verified

330
331
332def test_pinfo_docstring_no_source():
333 """Docstring should be included with detail_level=1 if there is no source"""
334 with AssertPrints('Docstring:'):
335 ip._inspect('pinfo', 'str.format', detail_level=0)
336 with AssertPrints('Docstring:'):
337 ip._inspect('pinfo', 'str.format', detail_level=1)
338
339
340def test_pinfo_no_docstring_if_source():

Callers

nothing calls this directly

Calls 2

AssertPrintsClass · 0.90
_inspectMethod · 0.80

Tested by

no test coverage detected