mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Tomas's feedback
This commit is contained in:
parent
03ca427c55
commit
f9851e12a9
2 changed files with 11 additions and 4 deletions
|
|
@ -748,6 +748,13 @@ def test_find_with_env_vars(self, patch_getlocale):
|
|||
localedir=os.path.join(self.tempdir, "locale"))
|
||||
self.assertEqual(result, mo_file)
|
||||
self.env.unset(var)
|
||||
# test fallbacks
|
||||
for var in ('LANGUAGE', 'LC_ALL', 'LC_MESSAGES', 'LANG'):
|
||||
self.env.set(var, 'es_ES:ga_IE:fr_FR')
|
||||
result = gettext.find("mofile",
|
||||
localedir=os.path.join(self.tempdir, "locale"))
|
||||
self.assertEqual(result, mo_file)
|
||||
self.env.unset(var)
|
||||
|
||||
@unittest.mock.patch("locale.getlocale", return_value=('ga_IE', 'UTF-8'))
|
||||
def test_process_vars_override(self, patch_getlocale):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue