Make sure last statement from time return a value.
(underscore_not_in_builtins)
| 529 | |
| 530 | |
| 531 | def test_multiline_time(underscore_not_in_builtins): |
| 532 | """Make sure last statement from time return a value.""" |
| 533 | ip = get_ipython() |
| 534 | ip.user_ns.pop("run", None) |
| 535 | |
| 536 | ip.run_cell( |
| 537 | dedent( |
| 538 | """\ |
| 539 | %%time |
| 540 | a = "ho" |
| 541 | b = "hey" |
| 542 | a+b |
| 543 | """ |
| 544 | ) |
| 545 | ) |
| 546 | assert ip.user_ns_hidden["_"] == "hohey" |
| 547 | |
| 548 | |
| 549 | def test_time_local_ns(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…