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

Function test_qmark_getindex

tests/test_oinspect.py:413–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411
412
413def test_qmark_getindex():
414 def dummy():
415 """
416 MARKER 2
417 """
418
419 container = [dummy]
420 with cleanup_user_ns(container=container):
421 with AssertPrints("MARKER 2"):
422 ip.run_cell("container[0]?")
423 assert "container" not in ip.user_ns.keys()
424
425
426def test_qmark_getindex_negatif():

Callers

nothing calls this directly

Calls 4

AssertPrintsClass · 0.90
cleanup_user_nsFunction · 0.85
keysMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…