Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add failing test for #822, will be fixed next

  • Loading branch information...
commit 31ab23f28cc7c2cc00b89cb557bde44e0a2905d2 1 parent 268ecbe
@fperez fperez authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 IPython/core/tests/test_interactiveshell.py
View
7 IPython/core/tests/test_interactiveshell.py
@@ -199,6 +199,13 @@ def test_drop_by_id(self):
assert ip.user_ns['b'] == 12
ip.reset()
+ def test_var_expand(self):
+ ip = get_ipython()
+ ip.user_ns['f'] = u'Ca\xc3\xb1o'
+ # This should not raise any exception:
+ ip.var_expand(u'echo $f')
+
+
class TestSafeExecfileNonAsciiPath(unittest.TestCase):
def setUp(self):

2 comments on commit 31ab23f

@takluyver
Owner

It doesn't fail, but it's a bit of an odd test - you've got what look like bytes in a unicode string. It prints as "Caño". Are you sure you didn't mean to have that as a bytestring, which would print as "Caño" (assuming it's UTF-8 encoded)?

@fperez
Owner

Good catch, fixed in ddb3a0f.

Please sign in to comment.
Something went wrong with that request. Please try again.