diff options
-rwxr-xr-x | scripts/download_import_cldr.py | 10 | ||||
-rw-r--r-- | tests/test_dates.py | 16 | ||||
-rw-r--r-- | tests/test_numbers.py | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/scripts/download_import_cldr.py b/scripts/download_import_cldr.py index 1d3c17b..b6e6f43 100755 --- a/scripts/download_import_cldr.py +++ b/scripts/download_import_cldr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import contextlib import os @@ -13,9 +13,9 @@ except ImportError: from urllib import urlretrieve -URL = 'http://unicode.org/Public/cldr/32.0.1/core.zip' -FILENAME = 'core-32.0.1.zip' -FILESUM = '571e33f482543f02ebd06c9b43d127a87c637c8c' +URL = 'https://unicode.org/Public/cldr/33/core.zip' +FILENAME = 'core-33.0.zip' +FILESUM = 'fa3490082c086d21257153609642f54fcf788fcfda4966fe67f3f6daca0d58b9' BLKSIZE = 131072 @@ -53,7 +53,7 @@ def is_good_file(filename): if not os.path.isfile(filename): log('Local copy \'%s\' not found', filename) return False - h = hashlib.sha1() + h = hashlib.sha256() with open(filename, 'rb') as f: while 1: blk = f.read(BLKSIZE) diff --git a/tests/test_dates.py b/tests/test_dates.py index 1cb60f1..b8c293b 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -134,16 +134,16 @@ class DateTimeFormatTestCase(unittest.TestCase): self.assertEqual('7', fmt['e']) # monday is first day of week fmt = dates.DateTimeFormat(d, locale='en_US') self.assertEqual('01', fmt['ee']) # sunday is first day of week - fmt = dates.DateTimeFormat(d, locale='bn_BD') - self.assertEqual('03', fmt['ee']) # friday is first day of week + fmt = dates.DateTimeFormat(d, locale='ar_BH') + self.assertEqual('02', fmt['ee']) # saturday is first day of week d = date(2007, 4, 2) # a monday fmt = dates.DateTimeFormat(d, locale='de_DE') self.assertEqual('1', fmt['e']) # monday is first day of week fmt = dates.DateTimeFormat(d, locale='en_US') self.assertEqual('02', fmt['ee']) # sunday is first day of week - fmt = dates.DateTimeFormat(d, locale='bn_BD') - self.assertEqual('04', fmt['ee']) # friday is first day of week + fmt = dates.DateTimeFormat(d, locale='ar_BH') + self.assertEqual('03', fmt['ee']) # saturday is first day of week def test_local_day_of_week_standalone(self): d = date(2007, 4, 1) # a sunday @@ -151,16 +151,16 @@ class DateTimeFormatTestCase(unittest.TestCase): self.assertEqual('7', fmt['c']) # monday is first day of week fmt = dates.DateTimeFormat(d, locale='en_US') self.assertEqual('1', fmt['c']) # sunday is first day of week - fmt = dates.DateTimeFormat(d, locale='bn_BD') - self.assertEqual('3', fmt['c']) # friday is first day of week + fmt = dates.DateTimeFormat(d, locale='ar_BH') + self.assertEqual('2', fmt['c']) # saturday is first day of week d = date(2007, 4, 2) # a monday fmt = dates.DateTimeFormat(d, locale='de_DE') self.assertEqual('1', fmt['c']) # monday is first day of week fmt = dates.DateTimeFormat(d, locale='en_US') self.assertEqual('2', fmt['c']) # sunday is first day of week - fmt = dates.DateTimeFormat(d, locale='bn_BD') - self.assertEqual('4', fmt['c']) # friday is first day of week + fmt = dates.DateTimeFormat(d, locale='ar_BH') + self.assertEqual('3', fmt['c']) # saturday is first day of week def test_pattern_day_of_week(self): dt = datetime(2016, 2, 6) diff --git a/tests/test_numbers.py b/tests/test_numbers.py index cdbe066..493c1a7 100644 --- a/tests/test_numbers.py +++ b/tests/test_numbers.py @@ -179,7 +179,7 @@ def test_list_currencies(): assert list_currencies(locale='pa_Arab') == {'PKR', 'INR', 'EUR'} - assert len(list_currencies()) == 299 + assert len(list_currencies()) == 300 def test_validate_currency(): |