From: Armin Ronacher Date: Sun, 8 Jan 2017 13:22:29 +0000 (+0100) Subject: Optimize the with test X-Git-Tag: 2.9.3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16e4daebc46377df496bccaa9747a72869b88548;p=thirdparty%2Fjinja.git Optimize the with test --- diff --git a/tests/test_core_tags.py b/tests/test_core_tags.py index edbcad6e..f857cc7b 100644 --- a/tests/test_core_tags.py +++ b/tests/test_core_tags.py @@ -369,8 +369,7 @@ class TestSet(object): @pytest.mark.with_ class TestWith(object): - def test_with(self): - env = Environment(extensions=['jinja2.ext.with_']) + def test_with(self, env): tmpl = env.from_string('''\ {% with a=42, b=23 -%} {{ a }} = {{ b }}