Use translation.deactivate, rather than explicitly activating the current settings LANGUAGE_CODE

This commit is contained in:
Calen Pennington
2016-06-02 10:26:26 -04:00
parent 6963c5307b
commit 105308e129

View File

@@ -66,7 +66,7 @@ class TestModuleI18nService(ModuleStoreTestCase):
self.descriptor,
self.field_data,
)
self.addCleanup(translation.activate, settings.LANGUAGE_CODE)
self.addCleanup(translation.deactivate)
def get_module_i18n_service(self, descriptor):
"""