diff --git a/django/contrib/auth/tests/views.py b/django/contrib/auth/tests/views.py
index 7244086..66e873a 100644
a
|
b
|
from django.utils.encoding import force_unicode
|
13 | 13 | from django.utils.html import escape |
14 | 14 | from django.test import TestCase |
15 | 15 | from django.test.utils import override_settings |
| 16 | from django.utils.translation import trans_real |
16 | 17 | |
17 | 18 | from django.contrib.auth import SESSION_KEY, REDIRECT_FIELD_NAME |
18 | 19 | from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm, |
… |
… |
class AuthViewsTestCase(TestCase):
|
31 | 32 | self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE |
32 | 33 | settings.LANGUAGES = (('en', 'English'),) |
33 | 34 | settings.LANGUAGE_CODE = 'en' |
| 35 | trans_real._default = None |
34 | 36 | self.old_TEMPLATE_DIRS = settings.TEMPLATE_DIRS |
35 | 37 | settings.TEMPLATE_DIRS = ( |
36 | 38 | os.path.join(os.path.dirname(__file__), 'templates'), |
… |
… |
class AuthViewsTestCase(TestCase):
|
39 | 41 | def tearDown(self): |
40 | 42 | settings.LANGUAGES = self.old_LANGUAGES |
41 | 43 | settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE |
| 44 | trans_real._default = None |
42 | 45 | settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS |
43 | 46 | |
44 | 47 | def login(self, password='password'): |