New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.11 traceback format changed, tests fail #1526
Comments
davidism
changed the title
Python 3.11: Traceback format has chnaged, tests/test_debug.py::TestDebug::test_(regular_syntax|runtime)_error fails
Python 3.11 traceback format changed, tests fail
Nov 4, 2021
hroncok
added a commit
to hroncok/jinja
that referenced
this issue
Nov 4, 2021
Fixes pallets#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
6 tasks
hroncok
added a commit
to hroncok/jinja
that referenced
this issue
Nov 4, 2021
Fixes pallets#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
hroncok
added a commit
to hroncok/jinja
that referenced
this issue
Nov 4, 2021
Fixes pallets#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
Fix ready in #1527 |
hroncok
added a commit
to hroncok/jinja
that referenced
this issue
Nov 4, 2021
Fixes pallets#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
hroncok
added a commit
to hroncok/jinja
that referenced
this issue
Nov 4, 2021
Fixes pallets#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
hroncok
added a commit
to hroncok/jinja
that referenced
this issue
Nov 4, 2021
Fixes pallets#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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When running jinja's tests with Python 3.11.0a1, two tests fail because the exception format has changed.
To reproduce, run tox:
Alternativelly, you can limit the number of tests:
Expected behavior: tests pass.
Actual behavior:
Environment:
I will look at a possible fixer.
The text was updated successfully, but these errors were encountered: