Source: html5lib
Version: 1.1-2
Severity: important
User: pyt...@packages.debian.org
Usertags: pytest-v6
Hi,
html5lib 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
> /<>/.pybuild/cpython3_3.9_html5lib/build; python3.9 -m pytest
> /<>
> = test session starts
> ==
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<>, configfile: pytest.ini
> plugins: expect-1.1.0
> 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
> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
> ../../../html5lib/tests/conftest.py:105: in pytest_collect_file
> return TokenizerFile(path, parent)
> /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 TokenizerFile has
> been deprecated, please use TokenizerFile.from_parent.
> E See
> https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent
> for more details.
> === short test summary info
>
> ERROR ../../.. - pytest.PytestDeprecationWarning: Direct construction of
> Toke...
> Interrupted: 1 error during collection
>
> === 1 error in 0.24s
> ===
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=2: cd
> /<>/.pybuild/cpython3_3.9_html5lib/build; python3.9 -m pytest
> {dir}
> dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit
> code 13
> make: *** [debian/rules:8: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status
> 2