mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Used addCleanup() in tests where appropriate.
This commit is contained in:
@@ -1756,10 +1756,7 @@ class ResolutionOrderI18NTests(SimpleTestCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
activate("de")
|
||||
|
||||
def tearDown(self):
|
||||
deactivate()
|
||||
super().tearDown()
|
||||
self.addCleanup(deactivate)
|
||||
|
||||
def assertGettext(self, msgid, msgstr):
|
||||
result = gettext(msgid)
|
||||
|
||||
Reference in New Issue
Block a user