diff options
author | Aarni Koskela <akx@iki.fi> | 2015-12-20 21:29:21 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2015-12-21 19:01:12 +0200 |
commit | 9f7f4d02998955719a8d18bfcbec8f700bec9923 (patch) | |
tree | 4ecb660643e624231034e009ebaea9b28c0f1443 /tests/test_dates.py | |
parent | 23c4a550c6073a1f6948196539d0c8c51c950a3a (diff) | |
download | babel-9f7f4d02998955719a8d18bfcbec8f700bec9923.tar.gz |
Update to CLDR 28 (with test updates)
* Aside from the usual data changes, the provisional aa locale is no longer,
so we can't use it for tests. Instead, ii is used (chosen by virtue of ii.xml
being fairly small, i.e. probably as incomplete as aa).
* ms_Latn_SG is not in use anymore either; use sr_Latn_ME instead.
Closes #226
Closes #290
Diffstat (limited to 'tests/test_dates.py')
-rw-r--r-- | tests/test_dates.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_dates.py b/tests/test_dates.py index 0f099f3..ea4805b 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -282,14 +282,14 @@ class FormatTimedeltaTestCase(unittest.TestCase): self.assertEqual('0 seconds', string) string = dates.format_timedelta(timedelta(seconds=0), locale='en', format='short') - self.assertEqual('0 secs', string) + self.assertEqual('0 sec', string) string = dates.format_timedelta(timedelta(seconds=0), granularity='hour', locale='en') self.assertEqual('0 hours', string) string = dates.format_timedelta(timedelta(seconds=0), granularity='hour', locale='en', format='short') - self.assertEqual('0 hrs', string) + self.assertEqual('0 hr', string) def test_small_value_with_granularity(self): string = dates.format_timedelta(timedelta(seconds=42), @@ -465,7 +465,7 @@ def test_format_datetime(): full = dates.format_datetime(dt, 'full', tzinfo=timezone('Europe/Paris'), locale='fr_FR') - assert full == (u'dimanche 1 avril 2007 17:30:00 heure ' + assert full == (u'dimanche 1 avril 2007 à 17:30:00 heure ' u'd\u2019\xe9t\xe9 d\u2019Europe centrale') custom = dates.format_datetime(dt, "yyyy.MM.dd G 'at' HH:mm:ss zzz", tzinfo=timezone('US/Eastern'), locale='en') |