From c1495db47ec685bf87fcfb35e017b5438cc923c7 Mon Sep 17 00:00:00 2001 From: Nicolas Brisac Date: Wed, 29 Jun 2016 22:41:16 +0200 Subject: [PATCH] fixed jinja2 test for python 3.2 --- tests/ext/jinja2_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ext/jinja2_tests.py b/tests/ext/jinja2_tests.py index 3ec4e55f..5b717ac3 100644 --- a/tests/ext/jinja2_tests.py +++ b/tests/ext/jinja2_tests.py @@ -21,14 +21,14 @@ class Jinja2ExtTestCase(test.CementExtTestCase): self.app.setup() rando = random.random() res = self.app.render(dict(foo=rando), 'test_template.jinja2') - jinja2_res = "foo equals %s\n" % rando + jinja2_res = "foo equals {}\n".format(rando) self.eq(res, jinja2_res) def test_jinja2_utf8(self): self.app.setup() rando = random.random() res = self.app.render(dict(foo=rando), 'test_template_utf8.jinja2') - jinja2_res = u"foo est égal à %s\n" % rando + jinja2_res = u"foo est égal à {}\n".format(rando) self.eq(res, jinja2_res) @test.raises(exc.FrameworkError)