From 5bcd244b377b0c3dd626eba08b5a1776552039ca 2019-06-06 16:17:57 From: Matthias Bussonnier Date: 2019-06-06 16:17:57 Subject: [PATCH] Merge pull request #11773 from eobrie16/test_timeit Speed up timeit arguments test --- diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 148e178..716e7cc 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -1165,8 +1165,8 @@ def test_time_no_var_expand(): def test_timeit_arguments(): "Test valid timeit arguments, should not cause SyntaxError (GH #1269)" if sys.version_info < (3,7): - _ip.magic("timeit ('#')") + _ip.magic("timeit -n1 -r1 ('#')") else: # 3.7 optimize no-op statement like above out, and complain there is # nothing in the for loop. - _ip.magic("timeit a=('#')") + _ip.magic("timeit -n1 -r1 a=('#')")