Ticket #18526: t18526__failing_test_case.diff

File t18526__failing_test_case.diff, 851 bytes (added by Gregor Müllegger, 12 years ago)
  • tests/regressiontests/templates/tests.py

    diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py
    index 35d0122..daf9c97 100644
    a b class Templates(unittest.TestCase):  
    14711471
    14721472            'with03': ('{% with a=alpha b=beta %}{{ a }}{{ b }}{% endwith %}', {'alpha': 'A', 'beta': 'B'}, 'AB'),
    14731473
     1474            # don't change semantics by using the with tag
     1475            'with04': ('{% if A == "" %}A{% endif %}{% with B=A %}{% if B == "" %}B{% endif %}{% endwith %}', {}, ''),
     1476
    14741477            'with-error01': ('{% with dict.key xx key %}{{ key }}{% endwith %}', {'dict': {'key': 50}}, template.TemplateSyntaxError),
    14751478            'with-error02': ('{% with dict.key as %}{{ key }}{% endwith %}', {'dict': {'key': 50}}, template.TemplateSyntaxError),
    14761479
Back to Top