[Python-modules-team] Bug#963402: python-babel: FTBFS: tests failed
Lucas Nussbaum
lucas at debian.org
Sun Jun 21 21:33:59 BST 2020
Source: python-babel
Version: 2.8.0+dfsg.1-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200620 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> LC_ALL=C py.test-3
> ============================= test session starts ==============================
> platform linux -- Python 3.8.3, pytest-4.6.11, py-1.8.1, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, inifile: setup.cfg
> collected 3009 items
>
> babel/core.py ................................................... [ 1%]
> babel/dates.py ........................... [ 2%]
> babel/lists.py . [ 2%]
> babel/localedata.py .. [ 2%]
> babel/numbers.py ................. [ 3%]
> babel/plural.py ........ [ 3%]
> babel/support.py ......... [ 3%]
> babel/units.py ..... [ 3%]
> babel/util.py .. [ 4%]
> babel/messages/catalog.py ........... [ 4%]
> babel/messages/checkers.py . [ 4%]
> babel/messages/extract.py .. [ 4%]
> babel/messages/frontend.py ... [ 4%]
> babel/messages/mofile.py . [ 4%]
> babel/messages/plurals.py . [ 4%]
> babel/messages/pofile.py ...... [ 4%]
> tests/test_core.py ..................................................... [ 6%]
> ... [ 6%]
> tests/test_date_intervals.py ........ [ 7%]
> tests/test_dates.py .................................................... [ 8%]
> ........................................................................ [ 11%]
> ........................................................................ [ 13%]
> ........................................................................ [ 15%]
> ........................................................................ [ 18%]
> ........................................................................ [ 20%]
> ........................................................................ [ 23%]
> ........................................................................ [ 25%]
> ........................................................................ [ 27%]
> ........................................................................ [ 30%]
> ........................................................................ [ 32%]
> ......................................................... [ 34%]
> tests/test_day_periods.py ....... [ 34%]
> tests/test_languages.py .. [ 34%]
> tests/test_lists.py .. [ 34%]
> tests/test_localedata.py ........... [ 35%]
> tests/test_numbers.py .................................................. [ 36%]
> ........................................................................ [ 39%]
> .... [ 39%]
> tests/test_plural.py ............................................. [ 40%]
> tests/test_smoke.py .................................................... [ 42%]
> ........................................................................ [ 45%]
> ........................................................................ [ 47%]
> ........................................................................ [ 49%]
> ........................................................................ [ 52%]
> ........................................................................ [ 54%]
> ........................................................................ [ 57%]
> ........................................................................ [ 59%]
> ........................................................................ [ 61%]
> ........................................................................ [ 64%]
> ........................................................................ [ 66%]
> ........................................................................ [ 69%]
> ........................................................................ [ 71%]
> ........................................................................ [ 73%]
> ........................................................................ [ 76%]
> ........................................................................ [ 78%]
> ........................................................................ [ 80%]
> ........................................................................ [ 83%]
> ........................................................................ [ 85%]
> ........................................................................ [ 88%]
> ........................................................................ [ 90%]
> ........................ [ 91%]
> tests/test_support.py ............................. [ 92%]
> tests/test_util.py ........FFFFF [ 92%]
> tests/messages/test_catalog.py ...................................... [ 94%]
> tests/messages/test_checkers.py ...... [ 94%]
> tests/messages/test_extract.py ...................................... [ 95%]
> tests/messages/test_frontend.py ........................................ [ 96%]
> ............ [ 97%]
> tests/messages/test_js_extract.py ........... [ 97%]
> tests/messages/test_jslexer.py ...... [ 97%]
> tests/messages/test_mofile.py .... [ 97%]
> tests/messages/test_normalized_string.py . [ 97%]
> tests/messages/test_plurals.py .......... [ 98%]
> tests/messages/test_pofile.py .......................................... [ 99%]
> .......... [100%]
>
> =================================== FAILURES ===================================
> _ test_parse_future[\nfrom __future__ import print_function,\n division, with_statement,\n unicode_literals\n-237568] _
>
> source = '\nfrom __future__ import print_function,\n division, with_statement,\n unicode_literals\n'
> result = 237568
>
> @pytest.mark.parametrize('source, result', [
> ('''
> from __future__ import print_function,
> division, with_statement,
> unicode_literals
> ''', 0x10000 | 0x2000 | 0x8000 | 0x20000),
> ('''
> from __future__ import print_function, division
> print('hello')
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import print_function, division, unknown,,,,,
> print 'hello'
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import (
> print_function,
> division)
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import \\
> print_function, \\
> division
> ''', 0x10000 | 0x2000),
> ])
> def test_parse_future(source, result):
> fp = BytesIO(source.encode('latin-1'))
> flags = parse_future_flags(fp)
> > assert flags == result
> E assert 3801088 == 237568
>
> tests/test_util.py:96: AssertionError
> _ test_parse_future[\nfrom __future__ import print_function, division\nprint('hello')\n-73728] _
>
> source = "\nfrom __future__ import print_function, division\nprint('hello')\n"
> result = 73728
>
> @pytest.mark.parametrize('source, result', [
> ('''
> from __future__ import print_function,
> division, with_statement,
> unicode_literals
> ''', 0x10000 | 0x2000 | 0x8000 | 0x20000),
> ('''
> from __future__ import print_function, division
> print('hello')
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import print_function, division, unknown,,,,,
> print 'hello'
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import (
> print_function,
> division)
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import \\
> print_function, \\
> division
> ''', 0x10000 | 0x2000),
> ])
> def test_parse_future(source, result):
> fp = BytesIO(source.encode('latin-1'))
> flags = parse_future_flags(fp)
> > assert flags == result
> E assert 1179648 == 73728
>
> tests/test_util.py:96: AssertionError
> _ test_parse_future[\nfrom __future__ import print_function, division, unknown,,,,,\nprint 'hello'\n-73728] _
>
> source = "\nfrom __future__ import print_function, division, unknown,,,,,\nprint 'hello'\n"
> result = 73728
>
> @pytest.mark.parametrize('source, result', [
> ('''
> from __future__ import print_function,
> division, with_statement,
> unicode_literals
> ''', 0x10000 | 0x2000 | 0x8000 | 0x20000),
> ('''
> from __future__ import print_function, division
> print('hello')
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import print_function, division, unknown,,,,,
> print 'hello'
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import (
> print_function,
> division)
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import \\
> print_function, \\
> division
> ''', 0x10000 | 0x2000),
> ])
> def test_parse_future(source, result):
> fp = BytesIO(source.encode('latin-1'))
> flags = parse_future_flags(fp)
> > assert flags == result
> E assert 1179648 == 73728
>
> tests/test_util.py:96: AssertionError
> _ test_parse_future[\nfrom __future__ import (\n print_function,\n division)\n-73728] _
>
> source = '\nfrom __future__ import (\n print_function,\n division)\n'
> result = 73728
>
> @pytest.mark.parametrize('source, result', [
> ('''
> from __future__ import print_function,
> division, with_statement,
> unicode_literals
> ''', 0x10000 | 0x2000 | 0x8000 | 0x20000),
> ('''
> from __future__ import print_function, division
> print('hello')
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import print_function, division, unknown,,,,,
> print 'hello'
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import (
> print_function,
> division)
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import \\
> print_function, \\
> division
> ''', 0x10000 | 0x2000),
> ])
> def test_parse_future(source, result):
> fp = BytesIO(source.encode('latin-1'))
> flags = parse_future_flags(fp)
> > assert flags == result
> E assert 1179648 == 73728
>
> tests/test_util.py:96: AssertionError
> _ test_parse_future[\nfrom __future__ import \\\n print_function, \\\n division\n-73728] _
>
> source = '\nfrom __future__ import \\\n print_function, \\\n division\n'
> result = 73728
>
> @pytest.mark.parametrize('source, result', [
> ('''
> from __future__ import print_function,
> division, with_statement,
> unicode_literals
> ''', 0x10000 | 0x2000 | 0x8000 | 0x20000),
> ('''
> from __future__ import print_function, division
> print('hello')
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import print_function, division, unknown,,,,,
> print 'hello'
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import (
> print_function,
> division)
> ''', 0x10000 | 0x2000),
> ('''
> from __future__ import \\
> print_function, \\
> division
> ''', 0x10000 | 0x2000),
> ])
> def test_parse_future(source, result):
> fp = BytesIO(source.encode('latin-1'))
> flags = parse_future_flags(fp)
> > assert flags == result
> E assert 1179648 == 73728
>
> tests/test_util.py:96: AssertionError
> =============================== warnings summary ===============================
> babel/numbers.py::babel.numbers.format_number
> babel/numbers.py::babel.numbers.format_number
> babel/support.py::babel.support.Format.number
> tests/test_numbers.py::test_format_number
> tests/test_numbers.py::test_format_number
> tests/test_support.py::test_format_number
> /<<PKGBUILDDIR>>/babel/numbers.py:352: DeprecationWarning: Use babel.numbers.format_decimal() instead.
> warnings.warn('Use babel.numbers.format_decimal() instead.', DeprecationWarning)
>
> babel/support.py::babel.support.Format.timedelta
> tests/test_support.py::test_format_timedelta
> /<<PKGBUILDDIR>>/babel/dates.py:914: DeprecationWarning: "medium" value for format param of format_timedelta is deprecated. Use "long" instead
> warnings.warn('"medium" value for format param of format_timedelta'
>
> tests/test_support.py::TranslationsTestCase::test_ldnpgettext
> tests/test_support.py::TranslationsTestCase::test_ldnpgettext
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> /<<PKGBUILDDIR>>/babel/support.py:335: DeprecationWarning: lngettext() is deprecated, use ngettext() instead
> return self._domains.get(domain, self).lngettext(singular, plural, num)
>
> tests/test_support.py::TranslationsTestCase::test_ldpgettext
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> /<<PKGBUILDDIR>>/babel/support.py:315: DeprecationWarning: lgettext() is deprecated, use gettext() instead
> return self._domains.get(domain, self).lgettext(message)
>
> tests/test_support.py::TranslationsTestCase::test_lnpgettext
> /<<PKGBUILDDIR>>/tests/test_support.py:110: DeprecationWarning: lngettext() is deprecated, use ngettext() instead
> self.translations.lngettext('foo1', 'foos1', 1))
>
> tests/test_support.py::TranslationsTestCase::test_lnpgettext
> /<<PKGBUILDDIR>>/tests/test_support.py:112: DeprecationWarning: lngettext() is deprecated, use ngettext() instead
> self.translations.lngettext('foo1', 'foos1', 2))
>
> tests/test_support.py::TranslationsTestCase::test_lpgettext
> /<<PKGBUILDDIR>>/tests/test_support.py:80: DeprecationWarning: lgettext() is deprecated, use gettext() instead
> self.assertEqualTypeToo(b'Voh', self.translations.lgettext('foo'))
>
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> /<<PKGBUILDDIR>>/tests/test_support.py:228: DeprecationWarning: lgettext() is deprecated, use gettext() instead
> self.assertEqual(method(*values), null_method(*values))
>
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> tests/test_support.py::NullTranslationsTestCase::test_same_return_values
> /<<PKGBUILDDIR>>/tests/test_support.py:228: DeprecationWarning: lngettext() is deprecated, use ngettext() instead
> self.assertEqual(method(*values), null_method(*values))
>
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> ============== 5 failed, 3004 passed, 22 warnings in 6.23 seconds ==============
> make[1]: *** [debian/rules:50: override_dh_auto_test] Error 1
The full build log is available from:
http://qa-logs.debian.net/2020/06/20/python-babel_2.8.0+dfsg.1-3_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Python-modules-team
mailing list