Skip to content
Myr

Merge branch '2.9-maintenance'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parents 159fe78, 716cfb7 · Browse files · 1 file+7 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+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:tests/test_regression.py+7 added
488 unmodified lines
489 'inc': 'bar',490 'main': '{% set foo = "foo" %}{{ foo }}{% include "inc" %}'491 }))492 assert env.get_template('main').render() == 'foobar'493494 def test_loop_include(self):495 env = Environment(loader=DictLoader({496 'inc': '{{ item }}',497 'main': '{% for item in [1, 2, 3] %}{% include "inc" %}{% endfor %}',498 }))499 assert env.get_template('main').render() == '123'