Skip to content
Myr

Optimize the with test

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 · parent 53e2572 · Browse files · 1 file+1 added−2 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+1 added−2 removed

  • tests:+1 added−2 removed

1 file+1 added−2 removed

modified:tests/test_core_tags.py+1 added-2 removed
367 unmodified lines
368@pytest.mark.core_tags369@pytest.mark.with_370class TestWith(object):371372 def test_with(self):373 env = Environment(extensions=['jinja2.ext.with_'])372 def test_with(self, env):373 tmpl = env.from_string('''\374 {% with a=42, b=23 -%}375 {{ a }} = {{ b }}376 {% endwith -%}
4 unmodified lines