Commit 1ba154b1 authored by Andi Vajda's avatar Andi Vajda
Browse files

preparing release 2.8

parent c3959f59
Version 2.7.4 ->
----------------------
Version 2.7.4 -> 2.8
--------------------
- fixed test failure in test_DateTimeParserGenerator.py with version 70.1rc
- added wrappers for UCurrNameStyle and for ucurr_getName() onto CurrencyUnit
- added support for ICU 70.1
- added FieldPosition-less overloads to RuleBasedNumberFormat.format()
- added pyproject.toml file to (also) build via python -m build
-
Version 2.7.3 -> 2.7.4
----------------------
......
......@@ -8,7 +8,7 @@ except ImportError:
from distutils.spawn import find_executable
VERSION = '2.7.4'
VERSION = '2.8'
ICU_MAX_MAJOR_VERSION = '70' # max supported major version of ICU
try:
......
......@@ -71,15 +71,15 @@ class TestTimeZone(TestCase):
pytz = ICUtzinfo.getInstance("Pacific/Fiji")
tzr = tz.getNextTransition(
datetime.datetime(2021, 4, 10, 12, 43, 33, tzinfo=pytz))
datetime.datetime(2020, 4, 10, 12, 43, 33, tzinfo=pytz))
tzr_time = tzr.getTime()
self.assertEqual(datetime.datetime.fromtimestamp(tzr_time, pytz),
datetime.datetime(2021, 11, 14, 2, 0, tzinfo=pytz))
datetime.datetime(2020, 12, 20, 2, 0, tzinfo=pytz))
pytz = ICUtzinfo.getInstance("America/Los_Angeles")
self.assertEqual(datetime.datetime.fromtimestamp(tzr_time, pytz),
datetime.datetime(2021, 11, 13, 6, 0, tzinfo=pytz))
datetime.datetime(2020, 12, 19, 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