()
| 16 | |
| 17 | |
| 18 | def test_restart_kernel(): |
| 19 | with CodeInterpreter() as sandbox: |
| 20 | sandbox.notebook.exec_cell("x = 1") |
| 21 | sandbox.notebook.restart_kernel() |
| 22 | |
| 23 | r = sandbox.notebook.exec_cell("x") |
| 24 | assert r.error.value == "name 'x' is not defined" |
| 25 | |
| 26 | |
| 27 | def test_list_kernels(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…