]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Optimize the with test
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 8 Jan 2017 13:22:29 +0000 (14:22 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 8 Jan 2017 13:22:29 +0000 (14:22 +0100)
tests/test_core_tags.py

index edbcad6eb9bc077112251938f75e72866977fb9d..f857cc7b3ca33f5bd2167d22dee0ae6b88371e3d 100644 (file)
@@ -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 }}