[Python-modules-team] Bug#977064: flask-gravatar FTBFS with pytest 6
Christian Kastner
ckk at debian.org
Thu Dec 10 18:47:58 GMT 2020
Source: flask-gravatar
Version: 0.4.2-2
Severity: important
User: pytest at packages.debian.org
Usertags: pytest-v6
Hi,
flask-gravatar FTBFS with pytest 6 in experimental because it uses a
deprecated feature that will be removed soon, and that, by default,
considered an error in pytest 6.
The error log below has more details.
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-gravatar/build; python3.9 -m pytest tests
> Coverage.py warning: No data was collected. (no-data-collected)
> ============================= test session starts ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> plugins: pep8-1.0.6, cov-2.8.1
> collected 0 items / 1 error
>
> ==================================== ERRORS ====================================
> ________________________ ERROR collecting test session _________________________
> /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_pep8.py:38: in pytest_collect_file
> return Pep8Item(path, parent, pep8ignore, config._max_line_length)
> /usr/lib/python3/dist-packages/_pytest/nodes.py:95: in __call__
> warnings.warn(NODE_USE_FROM_PARENT.format(name=self.__name__), stacklevel=2)
> E pytest.PytestDeprecationWarning: Direct construction of Pep8Item has been deprecated, please use Pep8Item.from_parent.
> E See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
>
> ----------- coverage: platform linux, python 3.9.1-final-0 -----------
> Name Stmts Miss Cover Missing
> ----------------------------------------------------------
> flask_gravatar/__init__.py 54 54 0% 13-135
> flask_gravatar/version.py 2 2 0% 10-19
> ----------------------------------------------------------
> TOTAL 56 56 0%
>
> =========================== short test summary info ============================
> ERROR ../../.. - pytest.PytestDeprecationWarning: Direct construction of Pep8...
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 0.07s ===============================
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-gravatar/build; python3.9 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
> make: *** [debian/rules:7: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the Python-modules-team
mailing list