From cb501100fdd361e56b4a77bc396336d00d3ce103 2012-01-18 06:16:28 From: Paul Ivanov Date: 2012-01-18 06:16:28 Subject: [PATCH] test for GH #1269 --- 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 ('#')")