From c716fe87821df00f9f03ecc761c914d1682591a2 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 1 Dec 2016 11:38:01 +0100 Subject: Refs #23919 -- Removed six.PY2/PY3 usage Thanks Tim Graham for the review. --- tests/template_tests/syntax_tests/test_width_ratio.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/template_tests/syntax_tests/test_width_ratio.py') diff --git a/tests/template_tests/syntax_tests/test_width_ratio.py b/tests/template_tests/syntax_tests/test_width_ratio.py index 8206b83c58..bec7d93a4c 100644 --- a/tests/template_tests/syntax_tests/test_width_ratio.py +++ b/tests/template_tests/syntax_tests/test_width_ratio.py @@ -1,6 +1,5 @@ from django.template import TemplateSyntaxError from django.test import SimpleTestCase -from django.utils import six from ..utils import setup @@ -36,11 +35,10 @@ class WidthRatioTagTests(SimpleTestCase): @setup({'widthratio06': '{% widthratio a b 100 %}'}) def test_widthratio06(self): """ - 62.5 should round to 63 on Python 2 and 62 on Python 3 - See http://docs.python.org/py3k/whatsnew/3.0.html + 62.5 should round to 62 """ output = self.engine.render_to_string('widthratio06', {'a': 50, 'b': 80}) - self.assertEqual(output, '62' if six.PY3 else '63') + self.assertEqual(output, '62') @setup({'widthratio07': '{% widthratio a b 100 %}'}) def test_widthratio07(self): -- cgit v1.3