#31478: Template.get_exception_info() relies on internal state which isn't 
correct
for sub-templates.
---------------------------------+--------------------------------------
     Reporter:  Keryn Knight     |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Template system  |                  Version:  master
     Severity:  Normal           |               Resolution:  duplicate
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by felixxm):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 Thanks Keryn, I think we can mark this as a duplicate of #28935 (as Tim
 suggested). It's a regression in e643ba8bcf0b1da517cbab689ac157ee031202a3
 and your patch restores the previous behavior. Unfortunately it also
 causes two failures:
 {{{
 ======================================================================
 FAIL: test_compile_tag_error_27584 (template_tests.tests.TemplateTests)
 ----------------------------------------------------------------------
 ...
 AssertionError: '' != '{% badtag %}'
 + {% badtag %}
 ======================================================================
 FAIL: test_compile_tag_error_27956 (template_tests.tests.TemplateTests)
 Errors in a child of {% extends %} are displayed correctly.
 ----------------------------------------------------------------------
 ...
 AssertionError: 'nt.html" %}\n' != '{% badtag %}'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31478#comment:3>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.60f8125d1365d613e836b092209045f0%40djangoproject.com.

Reply via email to