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 =
[ 73s]
[ 73s] def test_timezone_gmt(self):
[ 73s] tz = timezone('Europe/Berlin')
[ 73s] t = time(15, 30, tzinfo=tz)
[ 73s] fmt = dates.DateTimeFormat(t, locale='de_DE')
[ 73s] > self.assertEqual('GMT+01:00', fmt['ZZZZ'])
[ 73s] E AssertionError: 'GMT+01:00' != u'GMT+00:53'
[ 73s]
[ 73s] tests/test_dates.py:188: AssertionError
[ 73s] _________________ DateTimeFormatTestCase.test_timezone_rfc822 __________________
[ 73s]
[ 73s] self =
[ 73s]
[ 73s] def test_timezone_rfc822(self):
[ 73s] tz = timezone('Europe/Berlin')
[ 73s] t = time(15, 30, tzinfo=tz)
[ 73s] fmt = dates.DateTimeFormat(t, locale='de_DE')
[ 73s] > self.assertEqual('+0100', fmt['Z'])
[ 73s] E AssertionError: '+0100' != u'+0053'
[ 73s]
[ 73s] tests/test_dates.py:182: AssertionError
[ 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 =====================
Same issue arise in a local build, but not, if tests are executed standalone:
================================================= test session starts ==================================================
platform linux2 -- Python 2.7.6 -- py-1.4.20 -- pytest-2.5.2
collected 323 items
tests/test_core.py ..............................................
tests/test_dates.py ............................................................
tests/test_localedata.py ......
tests/test_numbers.py ...........................
tests/test_plural.py .......
tests/test_support.py ..........................
tests/test_util.py ..
tests/messages/test_catalog.py ....................................
tests/messages/test_checkers.py ......
tests/messages/test_extract.py ....................................
tests/messages/test_frontend.py ................................
tests/messages/test_jslexer.py .
tests/messages/test_mofile.py ...
tests/messages/test_plurals.py .
tests/messages/test_pofile.py ..................................
============================================== 323 passed in 1.38 seconds ==============================================
That's one of the packages suffering from this:
https://build.opensuse.org/package/show/devel:languages:python/python-Babel
Puzzled,
Pete
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org