Source: python-pygal
Version: 2.4.0-2.1
Severity: important
User: pyt...@packages.debian.org
Usertags: pytest-v6

Hi,

python-pygal FTBFS with pytest 6 in experimental because it used a
deprecated feature, which is now considered an error by default. See

    https://docs.pytest.org/en/latest/changelog.html#id356

The error log below has more details.

> ...
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> pygal/test/conftest.py:53: in pytest_generate_tests
>     if "Chart" in metafunc.funcargnames:
> /usr/lib/python3/dist-packages/_pytest/python.py:913: in funcargnames
>     warnings.warn(FUNCARGNAMES, stacklevel=2)
> /usr/lib/python3/dist-packages/_pytest/runner.py:294: in from_call
>     result = func()  # type: Optional[_T]
> /usr/lib/python3/dist-packages/_pytest/runner.py:324: in <lambda>
>     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
> /usr/lib/python3/dist-packages/_pytest/python.py:490: in collect
>     return super().collect()
> /usr/lib/python3/dist-packages/_pytest/python.py:409: in collect
>     res = self._makeitem(name, obj)
> /usr/lib/python3/dist-packages/_pytest/python.py:429: in _makeitem
>     item = self.ihook.pytest_pycollect_makeitem(
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
>     return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/python.py:246: in 
> pytest_pycollect_makeitem
>     res = list(collector._genfunctions(name, obj))
> /usr/lib/python3/dist-packages/_pytest/python.py:454: in _genfunctions
>     self.ihook.pytest_generate_tests.call_extra(methods, 
> dict(metafunc=metafunc))
> /usr/lib/python3/dist-packages/pluggy/hooks.py:324: in call_extra
>     return self(**kwargs)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
>     return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> pygal/test/conftest.py:53: in pytest_generate_tests
>     if "Chart" in metafunc.funcargnames:
> /usr/lib/python3/dist-packages/_pytest/python.py:913: in funcargnames
>     warnings.warn(FUNCARGNAMES, stacklevel=2)
> /usr/lib/python3/dist-packages/_pytest/runner.py:294: in from_call
>     result = func()  # type: Optional[_T]
> /usr/lib/python3/dist-packages/_pytest/runner.py:324: in <lambda>
>     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
> /usr/lib/python3/dist-packages/_pytest/python.py:490: in collect
>     return super().collect()
> /usr/lib/python3/dist-packages/_pytest/python.py:409: in collect
>     res = self._makeitem(name, obj)
> /usr/lib/python3/dist-packages/_pytest/python.py:429: in _makeitem
>     item = self.ihook.pytest_pycollect_makeitem(
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
>     return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/python.py:246: in 
> pytest_pycollect_makeitem
>     res = list(collector._genfunctions(name, obj))
> /usr/lib/python3/dist-packages/_pytest/python.py:454: in _genfunctions
>     self.ihook.pytest_generate_tests.call_extra(methods, 
> dict(metafunc=metafunc))
> /usr/lib/python3/dist-packages/pluggy/hooks.py:324: in call_extra
>     return self(**kwargs)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
>     return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> pygal/test/conftest.py:53: in pytest_generate_tests
>     if "Chart" in metafunc.funcargnames:
> /usr/lib/python3/dist-packages/_pytest/python.py:913: in funcargnames
>     warnings.warn(FUNCARGNAMES, stacklevel=2)
> /usr/lib/python3/dist-packages/_pytest/runner.py:294: in from_call
>     result = func()  # type: Optional[_T]
> /usr/lib/python3/dist-packages/_pytest/runner.py:324: in <lambda>
>     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
> /usr/lib/python3/dist-packages/_pytest/python.py:490: in collect
>     return super().collect()
> /usr/lib/python3/dist-packages/_pytest/python.py:409: in collect
>     res = self._makeitem(name, obj)
> /usr/lib/python3/dist-packages/_pytest/python.py:429: in _makeitem
>     item = self.ihook.pytest_pycollect_makeitem(
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
>     return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> /usr/lib/python3/dist-packages/_pytest/python.py:246: in 
> pytest_pycollect_makeitem
>     res = list(collector._genfunctions(name, obj))
> /usr/lib/python3/dist-packages/_pytest/python.py:454: in _genfunctions
>     self.ihook.pytest_generate_tests.call_extra(methods, 
> dict(metafunc=metafunc))
> /usr/lib/python3/dist-packages/pluggy/hooks.py:324: in call_extra
>     return self(**kwargs)
> /usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__
>     return self._hookexec(self, self.get_hookimpls(), kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec
>     return self._inner_hookexec(hook, methods, kwargs)
> /usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda>
>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> pygal/test/conftest.py:53: in pytest_generate_tests
>     if "Chart" in metafunc.funcargnames:
> /usr/lib/python3/dist-packages/_pytest/python.py:913: in funcargnames
>     warnings.warn(FUNCARGNAMES, stacklevel=2)
> E   pytest.PytestDeprecationWarning: The `funcargnames` attribute was an 
> alias for `fixturenames`, since pytest 2.3 - use the newer attribute instead.
> =============================== warnings summary 
> ===============================
> /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1148
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1148: 
> PytestConfigWarning: Unknown config ini key: flake8-ignore
>   
>     self._warn_or_fail_if_strict("Unknown config ini key: {}\n".format(key))
> 
> pygal/_compat.py:23
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pygal/build/pygal/_compat.py:23: 
> DeprecationWarning: Using or importing the ABCs from 'collections' instead of 
> from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will 
> stop working
>     from collections import Iterable
> 
> pygal/util.py:286
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pygal/build/pygal/util.py:286: 
> DeprecationWarning: invalid escape sequence \*
>     if css_comment[-3:] == '\*/':
> 
> /usr/lib/python3/dist-packages/pyquery/pyquery.py:50: 15 warnings
>   /usr/lib/python3/dist-packages/pyquery/pyquery.py:50: DeprecationWarning: 
> inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() 
> or inspect.getfullargspec()
>     name, inspect.getargspec(func).defaults)
> 
> pygal/test/test_graph.py:295
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pygal/build/pygal/test/test_graph.py:295:
>  DeprecationWarning: invalid escape sequence \}
>     'label': u('{\}°ijæð©&×&<—×€¿_…\{_…')
> 
> pygal/test/test_graph.py:319
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pygal/build/pygal/test/test_graph.py:319:
>  DeprecationWarning: invalid escape sequence \}
>     'label': eval("u'{\}°ijæð©&×&<—×€¿_…\{_…'")
> 
> pygal/test/test_graph.py:343
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pygal/build/pygal/test/test_graph.py:343:
>  DeprecationWarning: invalid escape sequence \}
>     'label': eval("'{\}°ijæð©&×&<—×€¿_…\{_…'")
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info 
> ============================
> ERROR pygal/test/test_bar.py - pytest.PytestDeprecationWarning: The 
> `funcargn...
> ERROR pygal/test/test_box.py - pytest.PytestDeprecationWarning: The 
> `funcargn...
> ERROR pygal/test/test_colors.py - pytest.PytestDeprecationWarning: The 
> `funca...
> ERROR pygal/test/test_config.py - pytest.PytestDeprecationWarning: The 
> `funca...
> ERROR pygal/test/test_date.py - pytest.PytestDeprecationWarning: The 
> `funcarg...
> ERROR pygal/test/test_formatters.py - pytest.PytestDeprecationWarning: The 
> `f...
> ERROR pygal/test/test_graph.py - pytest.PytestDeprecationWarning: The 
> `funcar...
> ERROR pygal/test/test_histogram.py - pytest.PytestDeprecationWarning: The 
> `fu...
> ERROR pygal/test/test_interpolate.py - pytest.PytestDeprecationWarning: The 
> `...
> ERROR pygal/test/test_line.py - pytest.PytestDeprecationWarning: The 
> `funcarg...
> ERROR pygal/test/test_pie.py - pytest.PytestDeprecationWarning: The 
> `funcargn...
> ERROR pygal/test/test_serie_config.py - pytest.PytestDeprecationWarning: The 
> ...
> ERROR pygal/test/test_sparktext.py - pytest.PytestDeprecationWarning: The 
> `fu...
> ERROR pygal/test/test_stacked.py - pytest.PytestDeprecationWarning: The 
> `func...
> ERROR pygal/test/test_style.py - pytest.PytestDeprecationWarning: The 
> `funcar...
> ERROR pygal/test/test_table.py - pytest.PytestDeprecationWarning: The 
> `funcar...
> ERROR pygal/test/test_util.py - pytest.PytestDeprecationWarning: The 
> `funcarg...
> ERROR pygal/test/test_view.py - pytest.PytestDeprecationWarning: The 
> `funcarg...
> ERROR pygal/test/test_xml_filters.py - pytest.PytestDeprecationWarning: The 
> `...
> !!!!!!!!!!!!!!!!!!! Interrupted: 19 errors during collection 
> !!!!!!!!!!!!!!!!!!!
> ======================= 21 warnings, 19 errors in 12.24s 
> =======================
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=2: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pygal/build; python3.9 -m pytest 
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 
> returned exit code 13
> make: *** [debian/rules:8: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to