[opensuse-buildservice] Timezone related python checks fail on build service
Hi,
any idea, why these tests fail:
[ 71s] ============================= test session starts ==============================
[ 71s] platform linux2 -- Python 2.7.6 -- py-1.4.20 -- pytest-2.5.2
[ 72s] collected 323 items
[ 72s]
[ 72s] tests/test_core.py ..............................................
[ 72s] tests/test_dates.py .................F..F............................F..........
[ 72s] tests/test_localedata.py ......
[ 72s] tests/test_numbers.py ...........................
[ 72s] tests/test_plural.py .......
[ 72s] tests/test_support.py ..........................
[ 72s] tests/test_util.py ..
[ 72s] tests/messages/test_catalog.py ....................................
[ 73s] tests/messages/test_checkers.py ......
[ 73s] tests/messages/test_extract.py ....................................
[ 73s] tests/messages/test_frontend.py ................................
[ 73s] tests/messages/test_jslexer.py .
[ 73s] tests/messages/test_mofile.py ...
[ 73s] tests/messages/test_plurals.py .
[ 73s] tests/messages/test_pofile.py ..................................
[ 73s]
[ 73s] =================================== FAILURES ===================================
[ 73s] ___________________ DateTimeFormatTestCase.test_timezone_gmt ___________________
[ 73s]
[ 73s] self =
On 07/24/2014 09:36 AM, Hans-Peter Jansen wrote:
Hi,
any idea, why these tests fail:
Hi, As the "timezone" package no more part of the basic build environment, you need to install it yourself. I have this in the syslog-ng package: # uncomment, if you want to run "make check" #BuildRequires: timezone (make check can't be run in OBS, as it's too restricted...) Bye, CzP -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi
Dne Thu, 24 Jul 2014 09:36:19 +0200
Hans-Peter Jansen
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
participants (3)
-
Hans-Peter Jansen
-
Michal Čihař
-
Peter Czanik