commit | e25f24def56e3e54b6ddf6e7213f4b810769586d | [log] [tgz] |
---|---|---|
author | Armin Ronacher <armin.ronacher@active-4.com> | Mon May 19 11:20:41 2008 +0200 |
committer | Armin Ronacher <armin.ronacher@active-4.com> | Mon May 19 11:20:41 2008 +0200 |
tree | 89ff48cb23b7c9956be834e1c84e0d3f58062e0e | |
parent | 24db451787fb3b966bca0eaf3ad4205fa8aaabf6 [diff] [blame] |
more thread safety in LRUCache --HG-- branch : trunk
diff --git a/tests/test_inheritance.py b/tests/test_inheritance.py index 34e5738..114ec9c 100644 --- a/tests/test_inheritance.py +++ b/tests/test_inheritance.py
@@ -93,3 +93,8 @@ def test_working(env): tmpl = env.get_template('working') + + +def test_reuse_blocks(env): + tmpl = env.from_string('{{ self.foo() }}|{% block foo %}42{% endblock %}|{{ self.foo() }}') + assert tmpl.render() == '42|42|42'