Skip to content
Myr

Added testcase for #335

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 0aa0f58 · Browse files · 1 file+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−1 removed

  • tests:+8 added−1 removed

1 file+8 added−1 removed

modified:tests/test_old_bugs.py+8 added-1 removed
6 unmodified lines
78 :copyright: (c) 2009 by the Jinja Team.9 :license: BSD.10"""11from py.test import raises11from jinja2 import Environment, DictLoader12from jinja2 import Environment, DictLoader, TemplateSyntaxError131415def test_keyword_folding():16 env = Environment()
36 unmodified lines
5354 ''')5556 assert tmpl.render() == ''575859def test_weird_inline_comment():60 env = Environment(line_statement_prefix='%')61 raises(TemplateSyntaxError, env.from_string,62 '% for item in seq {# missing #}\n...% endfor')