Merge branch '3.0.x'

This commit is contained in:
David Lord 2021-11-05 07:22:41 -07:00
commit 5e2385ca0c
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
5 changed files with 10 additions and 6 deletions

View File

@ -27,6 +27,7 @@ jobs:
- {name: Linux, python: '3.10', os: ubuntu-latest, tox: py310}
- {name: Windows, python: '3.10', os: windows-latest, tox: py310}
- {name: Mac, python: '3.10', os: macos-latest, tox: py310}
- {name: '3.11-dev', python: '3.11-dev', os: ubuntu-latest, tox: py311}
- {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39}
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}

View File

@ -66,7 +66,7 @@ pluggy==1.0.0
# tox
pre-commit==2.15.0
# via -r requirements/dev.in
py==1.10.0
py==1.11.0
# via
# pytest
# tox

View File

@ -12,7 +12,7 @@ packaging==21.2
# via pytest
pluggy==1.0.0
# via pytest
py==1.10.0
py==1.11.0
# via pytest
pyparsing==2.4.7
# via packaging

View File

@ -36,9 +36,11 @@ class TestDebug:
test,
r"""
File ".*?broken.html", line 2, in (top-level template code|<module>)
\{\{ fail\(\) \}\}
\{\{ fail\(\) \}\}(
\^{12})?
File ".*debug?.pyc?", line \d+, in <lambda>
tmpl\.render\(fail=lambda: 1 / 0\)
tmpl\.render\(fail=lambda: 1 / 0\)(
~~\^~~)?
ZeroDivisionError: (int(eger)? )?division (or modulo )?by zero
""",
)
@ -66,7 +68,8 @@ to be closed is 'for'.
test,
r"""
File ".*debug.pyc?", line \d+, in test
raise TemplateSyntaxError\("wtf", 42\)
raise TemplateSyntaxError\("wtf", 42\)(
\^{36})?
(jinja2\.exceptions\.)?TemplateSyntaxError: wtf
line 42""",
)

View File

@ -1,6 +1,6 @@
[tox]
envlist =
py{310,39,38,37,36,py37}
py{311,310,39,38,37,36,py37}
style
typing
docs