Further error message improvement, this time for #341.
--HG--
branch : trunk
diff --git a/tests/test_parser.py b/tests/test_parser.py
index cb75ca6..9e546c4 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -141,3 +141,6 @@
"Unexpected end of template. Jinja was looking for the "
"following tags: 'endfor' or 'else'. The innermost block "
"that needs to be closed is 'for'.")
+ assert_error('{% block foo-bar-baz %}',
+ "Block names in Jinja have to be valid Python identifiers "
+ "and may not contain hypens, use an underscore instead.")