#25056: Tests fails when using Jinja2 2.6
---------------------------------+--------------------
Reporter: vzima | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------
When I run tests on master (hash a570701) 6 of them fails with the same
error. Is seems Django does not work with Jinja 2.6, but I found no
minimal version required in documentation, so I expect 2.6 should work.
Class `jinja2.Environment` does not have `keep_trailing_newline` argument
in version 2.6.
Example traceback
{{{
======================================================================
ERROR: setUpClass (template_backends.test_jinja2.Jinja2Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vlastimil/git/django/tests/template_backends/test_dummy.py",
line 28, in setUpClass
cls.engine = cls.engine_class(params)
File "/home/vlastimil/git/django/django/template/backends/jinja2.py",
line 35, in __init__
self.env = environment_cls(**options)
TypeError: __init__() got an unexpected keyword argument
'keep_trailing_newline'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25056>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.9ac4c550df7870a0234a3ae69c215439%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.