]> git.ipfire.org Git - thirdparty/jinja.git/commit
Tests: Adapt expected traceback regexes for Python 3.11.0a1 1527/head
authorMiro Hrončok <miro@hroncok.cz>
Thu, 4 Nov 2021 17:03:06 +0000 (18:03 +0100)
committerDavid Lord <davidism@gmail.com>
Fri, 5 Nov 2021 14:19:04 +0000 (07:19 -0700)
commit757756696ceebf9967ad8b8c6df60a2be7f23c51
tree33acf3257b34c1cdd57f540899dad48a5386d69c
parentacd4e343eeab6e22448f17efc2e8501607f00736
Tests: Adapt expected traceback regexes for Python 3.11.0a1

Fixes https://github.com/pallets/jinja/issues/1526

Before:

      File ".../broken.html", line 2, in <module>
        {{ fail() }}
      File ".../test_debug.py", line 32, in <lambda>
        tmpl.render(fail=lambda: 1 / 0)
    ZeroDivisionError: division by zero

After:

      File ".../broken.html", line 2, in <module>
        {{ fail() }}
        ^^^^^^^^^^^^
      File ".../test_debug.py", line 32, in <lambda>
        tmpl.render(fail=lambda: 1 / 0)
                                 ~~^~~
    ZeroDivisionError: division by zero
tests/test_debug.py