diff --git a/tests/test_debug.py b/tests/test_debug.py index 0aec78ae4..1cb931cfc 100644 --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -36,9 +36,11 @@ def test(): test, r""" File ".*?broken.html", line 2, in (top-level template code|) - \{\{ fail\(\) \}\} + \{\{ fail\(\) \}\}( + \^{12})? File ".*debug?.pyc?", line \d+, in - tmpl\.render\(fail=lambda: 1 / 0\) + tmpl\.render\(fail=lambda: 1 / 0\)( + ~~\^~~)? ZeroDivisionError: (int(eger)? )?division (or modulo )?by zero """, ) @@ -66,7 +68,8 @@ def test(): test, r""" File ".*debug.pyc?", line \d+, in test - raise TemplateSyntaxError\("wtf", 42\) + raise TemplateSyntaxError\("wtf", 42\)( + \^{36})? (jinja2\.exceptions\.)?TemplateSyntaxError: wtf line 42""", )