##// END OF EJS Templates
Add failing test for issue gh-1878
Thomas Kluyver -
Show More
@@ -239,6 +239,14 b' class InteractiveShellTestCase(unittest.TestCase):'
239 239 # This should not raise any exception:
240 240 ip.var_expand(u'echo $f')
241 241
242 def test_var_expand_local(self):
243 ip.run_cell('def test():\n'
244 ' lvar = "ttt"\n'
245 ' ret = !echo {lvar}\n'
246 ' return ret[0]\n')
247 res = ip.user_ns['test']()
248 nt.assert_in('ttt', res)
249
242 250 def test_bad_var_expand(self):
243 251 """var_expand on invalid formats shouldn't raise"""
244 252 # SyntaxError
General Comments 0
You need to be logged in to leave comments. Login now