()
| 45 | |
| 46 | |
| 47 | def test_install() -> None: |
| 48 | console = Console(file=io.StringIO()) |
| 49 | dh = sys.displayhook |
| 50 | install(console) |
| 51 | sys.displayhook("foo") |
| 52 | assert console.file.getvalue() == "'foo'\n" |
| 53 | assert sys.displayhook is not dh |
| 54 | |
| 55 | |
| 56 | def test_install_max_depth() -> None: |