()
| 29 | ip.run_cell('1+1;\n#commented_out_function()', store_history=True) |
| 30 | |
| 31 | def 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 | |
| 44 | def test_underscore_no_overrite_builtins(): |
nothing calls this directly
no test coverage detected