diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 74d2604..f975076 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -804,7 +804,7 @@ def test_file_spaces(): ip = get_ipython() with TemporaryWorkingDirectory() as td: fname = "file name" - ip.run_cell_magic("file", "'%s'"%fname, u'\n'.join([ + ip.run_cell_magic("file", '"%s"'%fname, u'\n'.join([ 'line1', 'line2', ]))