From 410329fa56648e368bf1a94a9e7b16b502f4c3ed 2011-11-21 20:58:18 From: Thomas Kluyver Date: 2011-11-21 20:58:18 Subject: [PATCH] Sort out unicode test for shell expansion. --- diff --git a/IPython/core/tests/test_interactiveshell.py b/IPython/core/tests/test_interactiveshell.py index e9c1f5e..6ed510f 100644 --- a/IPython/core/tests/test_interactiveshell.py +++ b/IPython/core/tests/test_interactiveshell.py @@ -201,7 +201,10 @@ class InteractiveShellTestCase(unittest.TestCase): def test_var_expand(self): ip = get_ipython() - ip.user_ns['f'] = 'Ca\xc3\xb1o' + ip.user_ns['f'] = u'Ca\xf1o' + self.assertEqual(ip.var_expand(u'echo $f'), u'echo Ca\xf1o') + + ip.user_ns['f'] = b'Ca\xc3\xb1o' # This should not raise any exception: ip.var_expand(u'echo $f')