[Python-modules-team] Bug#728425: FTBFS in a sbuild chroot
Andrey Rahmatullin
wrar at wrar.name
Fri Nov 1 04:20:46 UTC 2013
Package: src:python-babel
Version: 1.3+dfsg.1-1
Severity: serious
make[1]: Entering directory `/«BUILDDIR»/python-babel-1.3+dfsg.1'
py.test tests
============================= test session starts ==============================
platform linux2 -- Python 2.7.5 -- pytest-2.3.5
collected 323 items
tests/test_core.py ..............................................
tests/test_dates.py ............................................................
tests/test_localedata.py ......
tests/test_numbers.py ..........F................
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 ..................................
=================================== FAILURES ===================================
____________________________ test_get_currency_name ____________________________
def test_get_currency_name():
> assert numbers.get_currency_name('USD', 'en_US') == u'US dollars'
tests/test_numbers.py:176:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
currency = 'USD', count = 'en_US', locale = None
def get_currency_name(currency, count=None, locale=LC_NUMERIC):
"""Return the name used by the locale for the specified currency.
>>> get_currency_name('USD', locale='en_US')
u'US Dollar'
.. versionadded:: 0.9.4
:param currency: the currency code
:param count: the optional count. If provided the currency name
will be pluralized to that number if possible.
:param locale: the `Locale` object or locale identifier
"""
loc = Locale.parse(locale)
if count is not None:
> plural_form = loc.plural_form(count)
E AttributeError: 'NoneType' object has no attribute 'plural_form'
babel/numbers.py:47: AttributeError
===================== 1 failed, 322 passed in 0.89 seconds =====================
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.12.0-rc7-wrar-1+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the Python-modules-team
mailing list