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

Function test_underscore_no_overrite_user

IPython/core/tests/test_displayhook.py:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 ip.run_cell('1+1;\n#commented_out_function()', store_history=True)
30
31def test_underscore_no_overrite_user():
32 ip.run_cell('_ = 42', store_history=True)
33 ip.run_cell('1+1', store_history=True)
34
35 with AssertPrints('42'):
36 ip.run_cell('print(_)', store_history=True)
37
38 ip.run_cell('del _', store_history=True)
39 ip.run_cell('6+6', store_history=True)
40 with AssertPrints('12'):
41 ip.run_cell('_', store_history=True)
42
43
44def test_underscore_no_overrite_builtins():

Callers

nothing calls this directly

Calls 2

AssertPrintsClass · 0.90
run_cellMethod · 0.45

Tested by

no test coverage detected