()
| 31 | |
| 32 | |
| 33 | def test_underscore_no_overwrite_user(): |
| 34 | ip.run_cell("_ = 42", store_history=True) |
| 35 | ip.run_cell("1+1", store_history=True) |
| 36 | |
| 37 | with AssertPrints("42"): |
| 38 | ip.run_cell("print(_)", store_history=True) |
| 39 | |
| 40 | ip.run_cell("del _", store_history=True) |
| 41 | ip.run_cell("6+6", store_history=True) |
| 42 | with AssertPrints("12"): |
| 43 | ip.run_cell("_", store_history=True) |
| 44 | |
| 45 | |
| 46 | def test_underscore_no_overwrite_builtins(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…