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

Method test_run_cell

IPython/core/tests/test_interactiveshell.py:641–648  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

639 ip.ast_transformers.remove(self.negator)
640
641 def test_run_cell(self):
642 with tt.AssertPrints('-34'):
643 ip.run_cell('print (12 + 22)')
644
645 # A named reference to a number shouldn't be transformed.
646 ip.user_ns['n'] = 55
647 with tt.AssertNotPrints('-55'):
648 ip.run_cell('print (n)')
649
650 def test_timeit(self):
651 called = set()

Callers

nothing calls this directly

Calls 1

run_cellMethod · 0.45

Tested by

no test coverage detected