Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

fix matching typo in tests, restore missing assert

  • Loading branch information...
1 parent 4e1bded commit e3a5d8a93715f1301b0d8ce492110d154073408c @yole yole committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 jinja2/testsuite/
6 jinja2/testsuite/
@@ -169,7 +169,7 @@ def assert_error(code, expected):
except TemplateSyntaxError, e:
assert str(e) == expected, 'unexpected error message'
- assert False, 'that was suposed to be an error'
+ assert False, 'that was supposed to be an error'
assert_error('{% for item in seq %}...{% endif %}',
"Encountered unknown tag 'endif'. Jinja was looking "
@@ -189,7 +189,7 @@ def assert_error(code, expected):
"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.")
+ "and may not contain hyphens, use an underscore instead.")
assert_error('{% unknown_tag %}',
"Encountered unknown tag 'unknown_tag'.")
@@ -327,7 +327,7 @@ def test_constant_casing(self):
def test_test_chaining(self):
self.assert_raises(TemplateSyntaxError, env.from_string,
'{{ foo is string is sequence }}')
- env.from_string('{{ 42 is string or 42 is number }}'
+ assert env.from_string('{{ 42 is string or 42 is number }}'
).render() == 'True'
def test_string_concatenation(self):

0 comments on commit e3a5d8a

Please sign in to comment.
Something went wrong with that request. Please try again.