summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_i18n/tests/test_gettextutils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/oslo_i18n/tests/test_gettextutils.py b/oslo_i18n/tests/test_gettextutils.py
index f433700..6f0d5c5 100644
--- a/oslo_i18n/tests/test_gettextutils.py
+++ b/oslo_i18n/tests/test_gettextutils.py
@@ -103,6 +103,9 @@ class GettextTest(test_base.BaseTestCase):
return None
self.stubs.Set(gettext, 'find', _mock_gettext_find)
+ # Ensure that no domains are cached
+ _gettextutils._AVAILABLE_LANGUAGES = {}
+
# en_US should always be available no matter the domain
# and it should also always be the first element since order matters
domain_1_languages = _gettextutils.get_available_languages('domain_1')