From 85665bc18d119ea80611a439fb55783914d9d4ea Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 4 Jul 2016 17:07:48 +1000 Subject: [PATCH] fix latex check --- tests/test_latex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_latex.py b/tests/test_latex.py index e762f0fab..f1a6faa90 100644 --- a/tests/test_latex.py +++ b/tests/test_latex.py @@ -24,7 +24,7 @@ def test_latex(): assert "installed" in msg # check if we have latex installed, and abort test if we don't if not shutil.which("latex") or not shutil.which("dvipng"): - print("aborting test; %s is not installed" % cmd) + print("aborting test; latex or dvipng is not installed") return # fix path anki.latex.latexCmds[0][0] = "latex" @@ -111,4 +111,4 @@ def _test_includes_bad_command(bad): f['Front'] = '[latex]%s[/latex]' % bad; d.addNote(f) q = f.cards()[0].q() - return ("'%s' is not allowed on cards" % bad in q, "Card content: %s" % q) \ No newline at end of file + return ("'%s' is not allowed on cards" % bad in q, "Card content: %s" % q)