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

Function test_pinfo_getindex

tests/test_oinspect.py:400–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

398
399
400def test_pinfo_getindex():
401 def dummy():
402 """
403 MARKER
404 """
405
406 container = [dummy]
407 with cleanup_user_ns(container=container):
408 with AssertPrints("MARKER"):
409 ip._inspect("pinfo", "container[0]", detail_level=0)
410 assert "container" not in ip.user_ns.keys()
411
412
413def test_qmark_getindex():

Callers

nothing calls this directly

Calls 4

AssertPrintsClass · 0.90
cleanup_user_nsFunction · 0.85
_inspectMethod · 0.80
keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…