Show More
@@ -201,7 +201,10 b' class InteractiveShellTestCase(unittest.TestCase):' | |||
|
201 | 201 | |
|
202 | 202 | def test_var_expand(self): |
|
203 | 203 | ip = get_ipython() |
|
204 |
ip.user_ns['f'] = 'Ca\x |
|
|
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 | 208 | # This should not raise any exception: |
|
206 | 209 | ip.var_expand(u'echo $f') |
|
207 | 210 |
General Comments 0
You need to be logged in to leave comments.
Login now