projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aa0f58
)
Added testcase for #335
author
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 30 Mar 2009 16:50:49 +0000
(18:50 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 30 Mar 2009 16:50:49 +0000
(18:50 +0200)
--HG--
branch : trunk
tests/test_old_bugs.py
patch
|
blob
|
history
diff --git
a/tests/test_old_bugs.py
b/tests/test_old_bugs.py
index 687d962e147b4d32401ee505520c68e7e32995b2..f77e60cf36dcb7250cee6883eac38401f072b97f 100644
(file)
--- a/
tests/test_old_bugs.py
+++ b/
tests/test_old_bugs.py
@@
-8,7
+8,8
@@
:copyright: (c) 2009 by the Jinja Team.
:license: BSD.
"""
-from jinja2 import Environment, DictLoader
+from py.test import raises
+from jinja2 import Environment, DictLoader, TemplateSyntaxError
def test_keyword_folding():
@@
-53,3
+54,9
@@
def test_loop_call_loop(env):
''')
assert tmpl.render() == ''
+
+
+def test_weird_inline_comment():
+ env = Environment(line_statement_prefix='%')
+ raises(TemplateSyntaxError, env.from_string,
+ '% for item in seq {# missing #}\n...% endfor')