Fixed isolation of admin_views.tests.ValidXHTMLTests.
@@ -5787,7 +5787,6 @@ class AdminDocsTest(TestCase):
],
},
}],
- USE_I18N=False,
)
class ValidXHTMLTests(TestCase):
@@ -5799,6 +5798,7 @@ class ValidXHTMLTests(TestCase):
self.client.force_login(self.superuser)
def test_lang_name_present(self):
+ with translation.override(None):
response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
self.assertNotContains(response, ' lang=""')
self.assertNotContains(response, ' xml:lang=""')
