diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-26 14:29:04 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-27 22:01:22 +0100 |
| commit | b951a7fbc12045eff104940dafaec308a543ead2 (patch) | |
| tree | 1dbf9095629c68f19110eaabe1824dc8e1c49593 /django | |
| parent | 3145ae06beed2f8c679db5d7a06907dd2a03d138 (diff) | |
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.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/humanize/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
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): |
