Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9bcb0e0

Browse files
committed
add-test-for-space-in-time
1 parent 1127641 commit 9bcb0e0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_magic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,11 @@ def test_time():
438438
with tt.AssertPrints("hihi", suppress=False):
439439
ip.run_cell("f('hi')")
440440

441+
with tt.AssertPrints("a space"):
442+
with tt.AssertPrints("Wall time: ", suppress=False):
443+
with tt.AssertPrints("CPU times: ", suppress=False):
444+
ip.run_cell("%time print('a space')")
445+
441446

442447
# ';' at the end of %time prevents instruction value to be printed.
443448
# This tests fix for #13837.

0 commit comments

Comments
 (0)