From 16e4daebc46377df496bccaa9747a72869b88548 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 8 Jan 2017 14:22:29 +0100 Subject: [PATCH] Optimize the with test --- tests/test_core_tags.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }} -- 2.47.2