summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index ec3f9ea..ac2611d 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -238,6 +238,10 @@ def test_default_locale(os_environ):
os_environ['LC_MESSAGES'] = 'POSIX'
assert default_locale('LC_MESSAGES') == 'en_US_POSIX'
+ for value in ['C', 'C.UTF-8', 'POSIX']:
+ os_environ['LANGUAGE'] = value
+ assert default_locale() == 'en_US_POSIX'
+
def test_negotiate_locale():
assert (core.negotiate_locale(['de_DE', 'en_US'], ['de_DE', 'de_AT']) ==