diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 7877825..ecd40e0 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -353,3 +353,8 @@ def test_timeit_shlex(): _ip.magic('timeit -r1 -n1 ("a " + "b")') _ip.magic('timeit -r1 -n1 f("a " + "b")') _ip.magic('timeit -r1 -n1 f("a " + "b ")') + + +def test_timeit_arguments(): + "Test valid timeit arguments, should not cause SyntaxError (GH #1269)" + _ip.magic("timeit ('#')")