def test_time():
    ip = get_ipython()
    with tt.AssertPrints('Wall time: '):
        ip.run_cell('%time None')
    ip.run_cell('def f(kmjy):\n    %time print (2*kmjy)')
    with tt.AssertPrints('Wall time: '):
        with tt.AssertPrints('hihi', suppress=False):
            ip.run_cell("f('hi')")
def test_time():
    ip = get_ipython()
    with tt.AssertPrints('Wall time: '):
        ip.run_cell('%time None')
    ip.run_cell('def f(kmjy):\n    %time print (2*kmjy)')
    with tt.AssertPrints('Wall time: '):
        with tt.AssertPrints('hihi', suppress=False):
            ip.run_cell("f('hi')")