##// END OF EJS Templates
Fix test for Python 3 on Windows....
Thomas Kluyver -
Show More
@@ -252,13 +252,15 b' class TestMagicRunSimple(tt.TempFileMixin):'
252 class secondtmp(tt.TempFileMixin): pass
252 class secondtmp(tt.TempFileMixin): pass
253 empty = secondtmp()
253 empty = secondtmp()
254 empty.mktmp('')
254 empty.mktmp('')
255 # On Windows, the filename will have \users in it, so we need to use the
256 # repr so that the \u becomes \\u.
255 src = ("ip = get_ipython()\n"
257 src = ("ip = get_ipython()\n"
256 "for i in range(5):\n"
258 "for i in range(5):\n"
257 " try:\n"
259 " try:\n"
258 " ip.magic('run %s')\n"
260 " ip.magic(%r)\n"
259 " except NameError as e:\n"
261 " except NameError as e:\n"
260 " print(i)\n"
262 " print(i)\n"
261 " break\n" % empty.fname)
263 " break\n" % ('run ' + empty.fname))
262 self.mktmp(src)
264 self.mktmp(src)
263 _ip.magic('run %s' % self.fname)
265 _ip.magic('run %s' % self.fname)
264 _ip.run_cell('ip == get_ipython()')
266 _ip.run_cell('ip == get_ipython()')
General Comments 0
You need to be logged in to leave comments. Login now