Source: docopt
Version: 0.6.2-2.2
Severity: serious
User: pyt...@packages.debian.org
Usertags: pytest-v6

Hi,

docopt autopkgtests fail with pytest 6 in unstable because it uses a
deprecated feature that will be removed soon, and that, by default,
considered an error in pytest 6.

The fragment of the CI error log below has more details.

> ==================================== 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(
> conftest.py:14: in pytest_collect_file
>     return DocoptTestFile(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 DocoptTestFile 
> has been deprecated, please use DocoptTestFile.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 
> DocoptTestFi...
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection 
> !!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 0.08s 
> ===============================
> autopkgtest [06:22:29]: test unittests: -----------------------]
> autopkgtest [06:22:30]: test unittests:  - - - - - - - - - - results - - - - 
> - - - - - -
> unittests            FAIL non-zero exit status 2

Reply via email to