##// END OF EJS Templates
Sort out unicode test for shell expansion.
Thomas Kluyver -
Show More
@@ -201,7 +201,10 b' class InteractiveShellTestCase(unittest.TestCase):'
201
201
202 def test_var_expand(self):
202 def test_var_expand(self):
203 ip = get_ipython()
203 ip = get_ipython()
204 ip.user_ns['f'] = 'Ca\xc3\xb1o'
204 ip.user_ns['f'] = u'Ca\xf1o'
205 self.assertEqual(ip.var_expand(u'echo $f'), u'echo Ca\xf1o')
206
207 ip.user_ns['f'] = b'Ca\xc3\xb1o'
205 # This should not raise any exception:
208 # This should not raise any exception:
206 ip.var_expand(u'echo $f')
209 ip.var_expand(u'echo $f')
207
210
General Comments 0
You need to be logged in to leave comments. Login now