Commit a35ab31a authored by Andi Vajda's avatar Andi Vajda
Browse files

version 2.7.4

parent feab7974
Version 2.7.3 ->
Version 2.7.3 -> 2.7.4
----------------------
- added wrappers for UWordBreak and BreakIterator.getRuleStatusVec()
- added wrappers for MessagePattern (Roman Kalukiewicz)
-
- added wrapper for Collator::getKeywordValuesForLocale
Version 2.7.2 -> 2.7.3
----------------------
......
......@@ -8,7 +8,7 @@ except ImportError:
from distutils.spawn import find_executable
VERSION = '2.7.3'
VERSION = '2.7.4'
ICU_MAX_MAJOR_VERSION = '69' # max supported major version of ICU
try:
......
......@@ -33,7 +33,7 @@ class TestTimeZone(TestCase):
tz = TimeZone.createTimeZone("America/Los_Angeles")
self.assertTrue(isinstance(tz, BasicTimeZone))
self.assertEquals(str(tz), "America/Los_Angeles")
self.assertEqual(str(tz), "America/Los_Angeles")
def testGetRules(self):
......@@ -51,7 +51,7 @@ class TestTimeZone(TestCase):
data = vtz.write()
vtz.createVTimeZone(data)
self.assertEquals(vtz.write(), data)
self.assertEqual(vtz.write(), data)
data = vtz.writeSimple(
datetime.datetime(2021, 4, 10, 12, 43, 33, 411400))
......@@ -63,7 +63,7 @@ class TestTimeZone(TestCase):
vtz = VTimeZone.createVTimeZoneFromBasicTimeZone(tz)
data = vtz.write()
vtz.createVTimeZone(data)
self.assertEquals(vtz.write(), data)
self.assertEqual(vtz.write(), data)
def testTransition(self):
......@@ -74,12 +74,12 @@ class TestTimeZone(TestCase):
datetime.datetime(2021, 4, 10, 12, 43, 33, tzinfo=pytz))
tzr_time = tzr.getTime()
self.assertEquals(datetime.datetime.fromtimestamp(tzr_time, pytz),
datetime.datetime(2021, 11, 14, 2, 0, tzinfo=pytz))
self.assertEqual(datetime.datetime.fromtimestamp(tzr_time, pytz),
datetime.datetime(2021, 11, 14, 2, 0, tzinfo=pytz))
pytz = ICUtzinfo.getInstance("America/Los_Angeles")
self.assertEquals(datetime.datetime.fromtimestamp(tzr_time, pytz),
datetime.datetime(2021, 11, 13, 6, 0, tzinfo=pytz))
self.assertEqual(datetime.datetime.fromtimestamp(tzr_time, pytz),
datetime.datetime(2021, 11, 13, 6, 0, tzinfo=pytz))
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment