diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-03 19:17:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-03 19:17:21 +0000 |
commit | 81e4fbcb846ed1cabdad699c0029b166dd7273b7 (patch) | |
tree | 16f1236b7a386949c02a6e3c13d0fcd8298fa133 /dev-python/Babel/files | |
parent | a70f42c65202d88c203c40910fef8f96f333d1ee (diff) |
gentoo resync : 03.01.2018
Diffstat (limited to 'dev-python/Babel/files')
-rw-r--r-- | dev-python/Babel/files/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dev-python/Babel/files/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch b/dev-python/Babel/files/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch deleted file mode 100644 index fdfb31d7c62a..000000000000 --- a/dev-python/Babel/files/2.3-Fix-the-way-local-time-is-constructed-in-tests.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 476515c2418039e471656f47efbfc43e5230c1fd Mon Sep 17 00:00:00 2001 -From: Isaac Jurado <diptongo@gmail.com> -Date: Sun, 29 May 2016 10:50:42 +0200 -Subject: [PATCH] Fix the way local time is constructed in tests - -In summer time zones, the test for "get_timezone_name" failed because the -construct used to obtain a local time did not deal properly with DST offsets. -As recommended by pytz, it is better to convert to local time from UTC. ---- - tests/test_dates.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/tests/test_dates.py b/tests/test_dates.py -index 3bb9e8b..b0d093e 100644 ---- a/tests/test_dates.py -+++ b/tests/test_dates.py -@@ -624,8 +624,9 @@ def test_get_timezone_name(): - assert dates.get_timezone_name(tz, locale='en', width='long', - zone_variant='daylight') == u'Pacific Daylight Time' - -+ localnow = datetime.utcnow().replace(tzinfo=timezone('UTC')).astimezone(dates.LOCALTZ) - assert (dates.get_timezone_name(None, locale='en_US') == -- dates.get_timezone_name(datetime.now().replace(tzinfo=dates.LOCALTZ), locale='en_US')) -+ dates.get_timezone_name(localnow, locale='en_US')) - - assert (dates.get_timezone_name('Europe/Berlin', locale='en_US') == "Central European Time") - --- -2.13.0 - |