From 31f22916c1fd38d6570df4c64539d2a2f1e976b5 2022-11-26 20:07:55 From: nfgf Date: 2022-11-26 20:07:55 Subject: [PATCH] Change after running darker. --- diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index ce0fbbe..9c44320 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -416,6 +416,7 @@ def test_time(): with tt.AssertPrints("hihi", suppress=False): ip.run_cell("f('hi')") + # ';' at the end of %time prevents instruction value to be printed. # This tests fix for #13837 def test_time_no_outputwith_semicolon(): @@ -431,6 +432,7 @@ def test_time_no_outputwith_semicolon(): with tt.AssertPrints("CPU times: ", suppress=False): ip.run_cell("%time 123000+456;") + def test_time_last_not_expression(): ip.run_cell("%%time\n" "var_1 = 1\n"