From f428602d764fd79ea6879e15e97d86ee3cfcf0ef 2015-01-12 23:33:41 From: Thomas Kluyver Date: 2015-01-12 23:33:41 Subject: [PATCH] Fix test for latextools under Python 2 Should resolve some test failures on the OS X buildbot --- diff --git a/IPython/lib/tests/test_latextools.py b/IPython/lib/tests/test_latextools.py index f13b39b..5f4cd27 100644 --- a/IPython/lib/tests/test_latextools.py +++ b/IPython/lib/tests/test_latextools.py @@ -43,7 +43,7 @@ def test_latex_to_png_dvipng_runs(): nt.assert_equals(filename, "breqn.sty") return None - for (s, wrap) in [("$$x^2$$", False), ("x^2", True)]: + for (s, wrap) in [(u"$$x^2$$", False), (u"x^2", True)]: yield (latextools.latex_to_png_dvipng, s, wrap) with monkeypatch(latextools, "kpsewhich", mock_kpsewhich):