From: Armin Ronacher Date: Fri, 6 Jan 2017 20:00:01 +0000 (+0100) Subject: Cleaned up shitty syntax in testsuite X-Git-Tag: 2.9~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e2b510526c1520a9bfff2d9e5775e65d95ce10;p=thirdparty%2Fjinja.git Cleaned up shitty syntax in testsuite --- diff --git a/tests/test_api.py b/tests/test_api.py index c358d01b..90a143b7 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -23,7 +23,7 @@ from jinja2.utils import Cycler @pytest.mark.api @pytest.mark.extended -class TestExtendedAPI(): +class TestExtendedAPI(object): def test_item_and_attribute(self, env): from jinja2.sandbox import SandboxedEnvironment @@ -107,7 +107,7 @@ class TestExtendedAPI(): @pytest.mark.api @pytest.mark.meta -class TestMeta(): +class TestMeta(object): def test_find_undeclared_variables(self, env): ast = env.parse('{% set foo = 42 %}{{ bar + foo }}') @@ -155,7 +155,7 @@ class TestMeta(): @pytest.mark.api @pytest.mark.streaming -class TestStreaming(): +class TestStreaming(object): def test_basic_streaming(self, env): tmpl = env.from_string("