Skip to content
Myr

Added a new testcase for something that is supposed to be a bug.

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 8346bd7 · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:jinja2/testsuite/core_tags.py+6 added
269 unmodified lines
270 assert tmpl.module.bar.catch_kwargs271 assert tmpl.module.bar.catch_varargs272 assert tmpl.module.baz.caller273274 def test_callself(self):275 tmpl = self.env.from_string('{% macro foo(x) %}{{ x }}{% if x > 1 %}|'276 '{{ foo(x - 1) }}{% endif %}{% endmacro %}'277 '{{ foo(5) }}')278 assert tmpl.render() == '5|4|3|2|1'279280281def suite():282 suite = unittest.TestSuite()283 suite.addTest(unittest.makeSuite(ForLoopTestCase))284 suite.addTest(unittest.makeSuite(IfConditionTestCase))
2 unmodified lines