From 91cf4d6c2fbd823e9083c1b7b6ccd6644b207e5c 2012-06-24 03:13:54 From: Jonathan March Date: 2012-06-24 03:13:54 Subject: [PATCH] Fix Windows pathname issue in 'odd encoding' test. Fixes #2017 --- diff --git a/IPython/core/tests/test_run.py b/IPython/core/tests/test_run.py index 179884c..d5edb86 100644 --- a/IPython/core/tests/test_run.py +++ b/IPython/core/tests/test_run.py @@ -246,5 +246,5 @@ tclass.py: deleting object: C-third """Check that files in odd encodings are accepted.""" mydir = os.path.dirname(__file__) na = os.path.join(mydir, 'nonascii.py') - _ip.magic('run %s' % na) + _ip.magic('run "%s"' % na) tt.assert_equals(_ip.user_ns['u'], u'Ўт№Ф')