forked from pool/python-Babel
update to version 2.2.0 OBS-URL: https://build.opensuse.org/request/show/357119 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=24
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
Index: Babel-2.1.1/tests/test_dates.py
|
|
===================================================================
|
|
--- Babel-2.1.1.orig/tests/test_dates.py
|
|
+++ Babel-2.1.1/tests/test_dates.py
|
|
@@ -175,18 +175,6 @@ class DateTimeFormatTestCase(unittest.Te
|
|
fmt = dates.DateTimeFormat(d, locale='en_US')
|
|
self.assertEqual('0000', fmt['AAAA'])
|
|
|
|
- def test_timezone_rfc822(self):
|
|
- tz = timezone('Europe/Berlin')
|
|
- t = tz.localize(datetime(2015, 1, 1, 15, 30))
|
|
- fmt = dates.DateTimeFormat(t, locale='de_DE')
|
|
- self.assertEqual('+0100', fmt['Z'])
|
|
-
|
|
- def test_timezone_gmt(self):
|
|
- tz = timezone('Europe/Berlin')
|
|
- t = tz.localize(datetime(2015, 1, 1, 15, 30))
|
|
- fmt = dates.DateTimeFormat(t, locale='de_DE')
|
|
- self.assertEqual('GMT+01:00', fmt['ZZZZ'])
|
|
-
|
|
def test_timezone_name(self):
|
|
tz = timezone('Europe/Paris')
|
|
dt = tz.localize(datetime(2007, 4, 1, 15, 30))
|
|
@@ -379,13 +367,6 @@ def test_get_timezone_gmt():
|
|
dt = datetime(2007, 4, 1, 15, 30)
|
|
assert dates.get_timezone_gmt(dt, locale='en') == u'GMT+00:00'
|
|
|
|
- tz = timezone('America/Los_Angeles')
|
|
- dt = tz.localize(datetime(2007, 4, 1, 15, 30))
|
|
- assert dates.get_timezone_gmt(dt, locale='en') == u'GMT-07:00'
|
|
- assert dates.get_timezone_gmt(dt, 'short', locale='en') == u'-0700'
|
|
-
|
|
- assert dates.get_timezone_gmt(dt, 'long', locale='fr_FR') == u'UTC-07:00'
|
|
-
|
|
|
|
def test_get_timezone_location():
|
|
tz = timezone('America/St_Johns')
|