diff options
author | Aarni Koskela <akx@iki.fi> | 2017-08-18 13:14:46 +0300 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2018-01-17 09:18:50 +0200 |
commit | a43d46486746b270f44e5412fc227d5f803bdf9e (patch) | |
tree | 8c99e304afcc52fb0ca8f29bfd5e7033a4ab9bf6 /tests/test_languages.py | |
parent | 77849ec967f9ff6f8470753abc2976c94b22aa2e (diff) | |
download | babel-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_languages.py')
-rw-r--r-- | tests/test_languages.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_languages.py b/tests/test_languages.py index 23af26d..32f0d67 100644 --- a/tests/test_languages.py +++ b/tests/test_languages.py @@ -11,6 +11,7 @@ def test_official_languages(): def test_get_language_info(): - assert set(get_territory_language_info("HU").keys()) == {"hu", "en", "de", - "ro", "hr", "sk", - "sl"} + assert ( + set(get_territory_language_info("HU")) == + {"hu", "fr", "en", "de", "ro", "hr", "sk", "sl"} + ) |