MCPcopy Index your code
hub / github.com/ipython/ipython / test_pinfo_docstring_no_source

Function test_pinfo_docstring_no_source

tests/test_oinspect.py:454–459  ·  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

452
453
454def test_pinfo_docstring_no_source():
455 """Docstring should be included with detail_level=1 if there is no source"""
456 with AssertPrints("Docstring:"):
457 ip._inspect("pinfo", "str.format", detail_level=0)
458 with AssertPrints("Docstring:"):
459 ip._inspect("pinfo", "str.format", detail_level=1)
460
461
462def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…