Mailinglist Archive: opensuse-buildservice (111 mails)

< Previous Next >
Re: [opensuse-buildservice] Timezone related python checks fail on build service
Hi

Dne Thu, 24 Jul 2014 09:36:19 +0200
Hans-Peter Jansen <hpj@xxxxxxxxx> napsal(a):

any idea, why these tests fail:
[..]
[ 73s] ____________________________ test_get_timezone_gmt
_____________________________
[ 73s]
[ 73s] def test_get_timezone_gmt():
[ 73s] dt = datetime(2007, 4, 1, 15, 30)
[ 73s] assert dates.get_timezone_gmt(dt, locale='en') ==
u'GMT+00:00'
[ 73s]
[ 73s] tz = timezone('America/Los_Angeles')
[ 73s] dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz)
[ 73s] > assert dates.get_timezone_gmt(dt, locale='en') ==
u'GMT-08:00'
[ 73s] E assert 'GMT-08:07' == 'GMT-08:00'
[ 73s] E - GMT-08:07
[ 73s] E ? ^
[ 73s] E + GMT-08:00
[ 73s] E ? ^
[ 73s]
[ 73s] tests/test_dates.py:384: AssertionError
[ 73s] ===================== 3 failed, 320 passed in 2.32 seconds
=====================
[...]
https://build.opensuse.org/package/show/devel:languages:python/python-Babel

As the very same tests fail upstream [1], I guess this is either
upstream bug or some problem with new pytz...

[1]: https://travis-ci.org/mitsuhiko/babel/jobs/29133038

--
Michal Čihař | http://cihar.com | http://blog.cihar.com
< Previous Next >
References