mirror of
https://github.com/django/django.git
synced 2025-12-04 09:03:21 +00:00
Used addCleanup() in tests where appropriate.
This commit is contained in:
parent
81ccf92f15
commit
d88ec42bd0
37 changed files with 121 additions and 240 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue