summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2017-08-18 13:14:46 +0300
committerAarni Koskela <akx@iki.fi>2018-01-17 09:18:50 +0200
commita43d46486746b270f44e5412fc227d5f803bdf9e (patch)
tree8c99e304afcc52fb0ca8f29bfd5e7033a4ab9bf6 /tests/test_core.py
parent77849ec967f9ff6f8470753abc2976c94b22aa2e (diff)
downloadbabel-a43d46486746b270f44e5412fc227d5f803bdf9e.tar.gz
cldr: use CLDR 31.0.1 (and fix test changes); see below!cldr-30
CLDR 31.0 separated the GMT and UTC time zones, so formatting of that time zone has changed. Most notably, "UTC" replaces "+0000" when formatting the timezone. This could break code that expects +0000. A subset (the parts supported by Babel) of the migration guide from http://cldr.unicode.org/index/downloads/cldr-31: * The locales in the language-territory population tables have been changed to be the canonical format, dropping the script where it is the default. So "ku_Latn" changes to "ku". * Plural rules: The Portuguese plural rules have changed so that all (and only) integers and decimal fractions < 2 are singular. * Timezones: The GMT timezone has been split from the UTC timezone. * Timezones: New timezone bcp47 codes have been added. * Languages "hr" and "sr" are no longer a short distance apart, for political reasons. * The primary names for CZ changed from "Czech Republic" to "Czechia", with the longer name now the alternate.
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index e3d8faf..4f985ca 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -58,7 +58,8 @@ def test_ignore_invalid_locales_in_lc_ctype(os_environ):
def test_get_global():
- assert core.get_global('zone_aliases')['UTC'] == 'Etc/GMT'
+ assert core.get_global('zone_aliases')['GMT'] == 'Etc/GMT'
+ assert core.get_global('zone_aliases')['UTC'] == 'Etc/UTC'
assert core.get_global('zone_territories')['Europe/Berlin'] == 'DE'