fix the abs filter test
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
Tue, 17 Aug 2010 09:43:06 +0000 (11:43 +0200)
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
Tue, 17 Aug 2010 09:43:06 +0000 (11:43 +0200)
--HG--
branch : trunk

jinja2/testsuite/filters.py

index a8ed21b3a4f670a1b49645f5b44ae4586412ffac..b59c9e38de0c3b2756f76ede6db5173e9f9cc489 100644 (file)
@@ -206,7 +206,7 @@ class FilterTestCase(JinjaTestCase):
 
     def test_abs(self):
         tmpl = env.from_string('''{{ -1|abs }}|{{ 1|abs }}''')
-        return tmpl.render() == '1|1'
+        assert tmpl.render() == '1|1', tmpl.render()
 
     def test_round_positive(self):
         tmpl = env.from_string('{{ 2.7|round }}|{{ 2.1|round }}|'