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

Method test_inspect_text

tests/test_interactiveshell.py:586–589  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

584 self.assertEqual(msg, "tests.test_interactiveshell.DerivedInterrupt: foo\n")
585
586 def test_inspect_text(self):
587 ip.run_cell("a = 5")
588 text = ip.object_inspect_text("a")
589 self.assertIsInstance(text, str)
590
591 def test_last_execution_result(self):
592 """Check that last execution result gets set correctly (GH-10702)"""

Callers

nothing calls this directly

Calls 2

object_inspect_textMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected