From ab6247f8d9afac0cff22fbdc0cc6ac3f3160028f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 3 Jan 2020 13:38:23 +1000 Subject: [PATCH] fix invalid escape warning --- pylib/tests/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/tests/test_models.py b/pylib/tests/test_models.py index f527bf389..177579f4e 100644 --- a/pylib/tests/test_models.py +++ b/pylib/tests/test_models.py @@ -215,7 +215,7 @@ def test_cloze_mathjax(): f["Text"] = r"\(a\) {{c1::b}} \[ {{c1::c}} \]" assert d.addNote(f) assert len(f.cards()) == 1 - assert f.cards()[0].q().endswith("\(a\) [...] \[ [...] \]") + assert f.cards()[0].q().endswith(r"\(a\) [...] \[ [...] \]") def test_chained_mods():