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:
@@ -19,6 +19,4 @@ class MultipleLocaleActivationTestCase(SimpleTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self._old_language = get_language()
|
||||
|
||||
def tearDown(self):
|
||||
activate(self._old_language)
|
||||
self.addCleanup(activate, self._old_language)
|
||||
|
||||
Reference in New Issue
Block a user