()
| 415 | |
| 416 | |
| 417 | def test_time(): |
| 418 | ip = get_ipython() |
| 419 | |
| 420 | with tt.AssertPrints("Wall time: "): |
| 421 | ip.run_cell("%time None") |
| 422 | |
| 423 | ip.run_cell("def f(kmjy):\n" |
| 424 | " %time print (2*kmjy)") |
| 425 | |
| 426 | with tt.AssertPrints("Wall time: "): |
| 427 | with tt.AssertPrints("hihi", suppress=False): |
| 428 | ip.run_cell("f('hi')") |
| 429 | |
| 430 | def test_time_last_not_expression(): |
| 431 | ip.run_cell("%%time\n" |
nothing calls this directly
no test coverage detected