mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix i18n related failures in unit tests.
This commit is contained in:
committed by
Rob Crittenden
parent
f3de95ce99
commit
18dda28c56
@@ -80,7 +80,7 @@ def test_gettext():
|
||||
# language not associated with any real language, but the
|
||||
# setlocale function demands the locale be a valid known locale,
|
||||
# U.S. English is a reasonable choice.
|
||||
request.set_languages('en_US.UTF-8')
|
||||
# request.set_languages('en_US.UTF-8')
|
||||
|
||||
# Tell gettext that our domain is 'ipa', that locale_dir is
|
||||
# 'test_locale' (i.e. where to look for the message catalog)
|
||||
@@ -117,7 +117,6 @@ def test_gettext():
|
||||
|
||||
# Reset the language and assure we don't get the test values
|
||||
context.__dict__.clear()
|
||||
request.set_languages('fr_FR')
|
||||
translated = unicode(localized)
|
||||
|
||||
assert(translated[0] != prefix)
|
||||
|
||||
Reference in New Issue
Block a user