Bug#973164: python-deprecated: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.8" returned exit code 13

Lucas Nussbaum lucas at debian.org
Tue Oct 27 17:11:04 GMT 2020


Source: python-deprecated
Version: 1.2.10-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
>  debian/rules build
> dh build \
> 	--buildsystem=pybuild \
> 	--with python3
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:217: python3.9 setup.py config 
> running config
> I: pybuild base:217: python3.8 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:217: /usr/bin/python3.9 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_deprecated/build/deprecated
> copying deprecated/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_deprecated/build/deprecated
> copying deprecated/sphinx.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_deprecated/build/deprecated
> copying deprecated/classic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_deprecated/build/deprecated
> running egg_info
> creating Deprecated.egg-info
> writing Deprecated.egg-info/PKG-INFO
> writing dependency_links to Deprecated.egg-info/dependency_links.txt
> writing requirements to Deprecated.egg-info/requires.txt
> writing top-level names to Deprecated.egg-info/top_level.txt
> writing manifest file 'Deprecated.egg-info/SOURCES.txt'
> reading manifest file 'Deprecated.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '.coveragerc'
> warning: no files found matching '*.yaml'
> warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
> warning: no previously-included files matching '__pycache__' found anywhere in distribution
> warning: no previously-included files matching '*.so' found anywhere in distribution
> warning: no previously-included files matching '*.dylib' found anywhere in distribution
> warning: no previously-included files matching '.DS_Store' found anywhere in distribution
> writing manifest file 'Deprecated.egg-info/SOURCES.txt'
> I: pybuild base:217: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_deprecated/build/deprecated
> copying deprecated/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_deprecated/build/deprecated
> copying deprecated/sphinx.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_deprecated/build/deprecated
> copying deprecated/classic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_deprecated/build/deprecated
> running egg_info
> writing Deprecated.egg-info/PKG-INFO
> writing dependency_links to Deprecated.egg-info/dependency_links.txt
> writing requirements to Deprecated.egg-info/requires.txt
> writing top-level names to Deprecated.egg-info/top_level.txt
> reading manifest file 'Deprecated.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '.coveragerc'
> warning: no files found matching '*.yaml'
> warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
> warning: no previously-included files matching '__pycache__' found anywhere in distribution
> warning: no previously-included files matching '*.so' found anywhere in distribution
> warning: no previously-included files matching '*.dylib' found anywhere in distribution
> warning: no previously-included files matching '.DS_Store' found anywhere in distribution
> writing manifest file 'Deprecated.egg-info/SOURCES.txt'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_deprecated/build; python3.9 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.9.0+, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, inifile: setup.cfg
> plugins: cov-2.8.1
> collected 156 items
> 
> tests/test.py ..                                                         [  1%]
> tests/test_deprecated.py ............................FFFFFFF......       [ 27%]
> tests/test_deprecated_class.py .......                                   [ 32%]
> tests/test_deprecated_metaclass.py ....                                  [ 34%]
> tests/test_sphinx.py ................................................... [ 67%]
> ...............................FFFFFFF......                             [ 95%]
> tests/test_sphinx_class.py ...                                           [ 97%]
> tests/test_sphinx_metaclass.py ....                                      [100%]
> 
> =================================== FAILURES ===================================
> ______________ test_classic_deprecated_class_method__warns[None] _______________
> 
> classic_deprecated_class_method = <class 'tests.test_deprecated.classic_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_classic_deprecated_class_method__warns(classic_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = classic_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(DeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b181640>.message
> 
> tests/test_deprecated.py:187: AssertionError
> _ test_classic_deprecated_class_method__warns[classic_deprecated_class_method1] _
> 
> classic_deprecated_class_method = <class 'tests.test_deprecated.classic_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_classic_deprecated_class_method__warns(classic_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = classic_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(DeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b1e20d0>.message
> 
> tests/test_deprecated.py:187: AssertionError
> _ test_classic_deprecated_class_method__warns[classic_deprecated_class_method2] _
> 
> classic_deprecated_class_method = <class 'tests.test_deprecated.classic_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_classic_deprecated_class_method__warns(classic_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = classic_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5. (Good reason)'
> E        +  where 'Call to deprecated class method foo5. (Good reason)' = str(DeprecationWarning('Call to deprecated class method foo5. (Good reason)'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5. (Good reason)') = <warnings.WarningMessage object at 0x7f298b142640>.message
> 
> tests/test_deprecated.py:187: AssertionError
> _ test_classic_deprecated_class_method__warns[classic_deprecated_class_method3] _
> 
> classic_deprecated_class_method = <class 'tests.test_deprecated.classic_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_classic_deprecated_class_method__warns(classic_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = classic_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5. (Good reason)'
> E        +  where 'Call to deprecated class method foo5. (Good reason)' = str(DeprecationWarning('Call to deprecated class method foo5. (Good reason)'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5. (Good reason)') = <warnings.WarningMessage object at 0x7f298b1324f0>.message
> 
> tests/test_deprecated.py:187: AssertionError
> _ test_classic_deprecated_class_method__warns[classic_deprecated_class_method4] _
> 
> classic_deprecated_class_method = <class 'tests.test_deprecated.classic_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_classic_deprecated_class_method__warns(classic_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = classic_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5. -- Deprecated since version 1.2.3.'
> E        +  where 'Call to deprecated class method foo5. -- Deprecated since version 1.2.3.' = str(DeprecationWarning('Call to deprecated class method foo5. -- Deprecated since version 1.2.3.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5. -- Deprecated since version 1.2.3.') = <warnings.WarningMessage object at 0x7f298b15f310>.message
> 
> tests/test_deprecated.py:187: AssertionError
> _ test_classic_deprecated_class_method__warns[classic_deprecated_class_method5] _
> 
> classic_deprecated_class_method = <class 'tests.test_deprecated.classic_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_classic_deprecated_class_method__warns(classic_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = classic_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(DeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b1329a0>.message
> 
> tests/test_deprecated.py:187: AssertionError
> _ test_classic_deprecated_class_method__warns[classic_deprecated_class_method6] _
> 
> classic_deprecated_class_method = <class 'tests.test_deprecated.classic_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_classic_deprecated_class_method__warns(classic_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = classic_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(MyDeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where MyDeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b163c10>.message
> 
> tests/test_deprecated.py:187: AssertionError
> _______________ test_sphinx_deprecated_class_method__warns[None] _______________
> 
> sphinx_deprecated_class_method = <class 'tests.test_sphinx.sphinx_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = sphinx_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(DeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b181b50>.message
> 
> tests/test_sphinx.py:337: AssertionError
> _ test_sphinx_deprecated_class_method__warns[sphinx_deprecated_class_method1] __
> 
> sphinx_deprecated_class_method = <class 'tests.test_sphinx.sphinx_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = sphinx_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(DeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b188ca0>.message
> 
> tests/test_sphinx.py:337: AssertionError
> _ test_sphinx_deprecated_class_method__warns[sphinx_deprecated_class_method2] __
> 
> sphinx_deprecated_class_method = <class 'tests.test_sphinx.sphinx_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = sphinx_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5. (Good reason)'
> E        +  where 'Call to deprecated class method foo5. (Good reason)' = str(DeprecationWarning('Call to deprecated class method foo5. (Good reason)'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5. (Good reason)') = <warnings.WarningMessage object at 0x7f298b142550>.message
> 
> tests/test_sphinx.py:337: AssertionError
> _ test_sphinx_deprecated_class_method__warns[sphinx_deprecated_class_method3] __
> 
> sphinx_deprecated_class_method = <class 'tests.test_sphinx.sphinx_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = sphinx_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5. (Good reason)'
> E        +  where 'Call to deprecated class method foo5. (Good reason)' = str(DeprecationWarning('Call to deprecated class method foo5. (Good reason)'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5. (Good reason)') = <warnings.WarningMessage object at 0x7f298b188310>.message
> 
> tests/test_sphinx.py:337: AssertionError
> _ test_sphinx_deprecated_class_method__warns[sphinx_deprecated_class_method4] __
> 
> sphinx_deprecated_class_method = <class 'tests.test_sphinx.sphinx_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = sphinx_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5. -- Deprecated since version 1.2.3.'
> E        +  where 'Call to deprecated class method foo5. -- Deprecated since version 1.2.3.' = str(DeprecationWarning('Call to deprecated class method foo5. -- Deprecated since version 1.2.3.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5. -- Deprecated since version 1.2.3.') = <warnings.WarningMessage object at 0x7f298b142490>.message
> 
> tests/test_sphinx.py:337: AssertionError
> _ test_sphinx_deprecated_class_method__warns[sphinx_deprecated_class_method5] __
> 
> sphinx_deprecated_class_method = <class 'tests.test_sphinx.sphinx_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = sphinx_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(DeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where DeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b106dc0>.message
> 
> tests/test_sphinx.py:337: AssertionError
> _ test_sphinx_deprecated_class_method__warns[sphinx_deprecated_class_method6] __
> 
> sphinx_deprecated_class_method = <class 'tests.test_sphinx.sphinx_deprecated_class_method.<locals>.Foo5'>
> 
>     def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
>         with warnings.catch_warnings(record=True) as warns:
>             warnings.simplefilter("always")
>             cls = sphinx_deprecated_class_method()
>             cls.foo5()
>         assert len(warns) == 1
>         warn = warns[0]
>         assert issubclass(warn.category, DeprecationWarning)
> >       assert "deprecated function (or staticmethod)" in str(warn.message)
> E       AssertionError: assert 'deprecated function (or staticmethod)' in 'Call to deprecated class method foo5.'
> E        +  where 'Call to deprecated class method foo5.' = str(MyDeprecationWarning('Call to deprecated class method foo5.'))
> E        +    where MyDeprecationWarning('Call to deprecated class method foo5.') = <warnings.WarningMessage object at 0x7f298b17cf40>.message
> 
> tests/test_sphinx.py:337: AssertionError
> =============================== warnings summary ===============================
> .pybuild/cpython3_3.9_deprecated/build/tests/test_deprecated_class.py::test_simple_class_deprecation_with_args
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_deprecated/build/tests/test_deprecated_class.py:148: DeprecationWarning: Call to deprecated class MyClass. (kwargs class)
>     MyClass(5)
> 
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> ============== 14 failed, 142 passed, 1 warnings in 1.00 seconds ===============
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_deprecated/build; python3.9 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.8" returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/python-deprecated_1.2.10-1_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 Pkg-grass-devel mailing list