[Python-modules-team] Bug#933914: python3-pytest: pytest v4 breaks existing tests

Drew Parsons dparsons at debian.org
Tue Aug 6 10:25:25 BST 2019


On 2019-08-05 16:37, Novy, Ondrej wrote:
> Tags: wontfix
> 
> On Mon, 05 Aug 2019 11:43:39 +0800 Drew Parsons <dparsons at debian.org>
>  wrote:
> 
>> This upgrade should be treated as a Transition, uploading the
> package to
>> experimental first.
> 
> We are not using Transitions for Python upgrades because almost every
> module upgrade breaks something. It's too much overhead for us. Last
> time I uploaded pytest to experimental first and send information to
> ML, nothing happened [1].


There seem to be regularities in the pytest4 error message, i.e. the 
same errors are reported in the different packages.

It would be helpful to have an indication of the common patches that 
will be needed to address them.

e.g what to do about

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", 
line 206, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", 
line 250, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/hooks.py", 
line 289, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), 
kwargs)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 87, in 
_hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 81, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if 
hook.spec else False,
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in 
_multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in 
get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in 
_multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/_pytest/main.py", 
line 271, in pytest_runtestloop
INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, 
nextitem=nextitem)
INTERNALERROR>   File "/usr/lib/python3/dist-packages/pluggy/hooks.py", 
line 289, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), 
kwargs)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 87, in 
_hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/manager.py", line 81, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if 
hook.spec else False,
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 208, in 
_multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in 
get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in 
_multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py", line 81, 
in pytest_runtest_protocol
INTERNALERROR>     self.runner.pytest_runtest_protocol(item, nextitem)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/_pytest/runner.py", line 78, in 
pytest_runtest_protocol
INTERNALERROR>     runtestprotocol(item, nextitem=nextitem)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/_pytest/runner.py", line 87, in 
runtestprotocol
INTERNALERROR>     rep = call_and_report(item, "setup", log)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py", line 118, 
in call_and_report
INTERNALERROR>     call = self.call_runtest_hook(item, when, **kwds)
INTERNALERROR>   File 
"/usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py", line 272, 
in call_runtest_hook
INTERNALERROR>     when=when,
INTERNALERROR> TypeError: __init__() missing 3 required positional 
arguments: 'excinfo', 'start', and 'stop'



More information about the Python-modules-team mailing list