From b951a7fbc12045eff104940dafaec308a543ead2 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 26 Jan 2014 14:29:04 +0100 Subject: Removed superfluous uses of TransRealMixin. The translation.override context manager cleans up after itself. As a consequence this mixin isn't needed any more in many cases. --- django/contrib/humanize/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'django') diff --git a/django/contrib/humanize/tests.py b/django/contrib/humanize/tests.py index ab4d53c760..4a58a64889 100644 --- a/django/contrib/humanize/tests.py +++ b/django/contrib/humanize/tests.py @@ -12,7 +12,6 @@ from django.conf import settings from django.contrib.humanize.templatetags import humanize from django.template import Template, Context, defaultfilters from django.test import TestCase, override_settings -from django.test.utils import TransRealMixin from django.utils.html import escape from django.utils.timezone import utc, get_fixed_timezone from django.utils import translation @@ -36,7 +35,7 @@ class MockDateTime(datetime.datetime): return now.replace(tzinfo=tz) + tz.utcoffset(now) -class HumanizeTests(TransRealMixin, TestCase): +class HumanizeTests(TestCase): def humanize_tester(self, test_list, result_list, method, normalize_result_func=escape): for test_content, result in zip(test_list, result_list): -- cgit v1.3