()
| 44 | |
| 45 | |
| 46 | def test_underscore_no_overwrite_builtins(): |
| 47 | ip.run_cell("import gettext ; gettext.install('foo')", store_history=True) |
| 48 | ip.run_cell("3+3", store_history=True) |
| 49 | |
| 50 | with AssertPrints("gettext"): |
| 51 | ip.run_cell("print(_)", store_history=True) |
| 52 | |
| 53 | ip.run_cell('_ = "userset"', store_history=True) |
| 54 | |
| 55 | with AssertPrints("userset"): |
| 56 | ip.run_cell("print(_)", store_history=True) |
| 57 | ip.run_cell("import builtins; del builtins._") |
| 58 | |
| 59 | |
| 60 | def test_interactivehooks_ast_modes(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…