[Python-modules-team] Bug#979298: python-mechanicalsoup autopkgtests fail with pytest 6

Christian Kastner ckk at debian.org
Mon Jan 4 23:04:48 GMT 2021


Source: python-mechanicalsoup
Version: 0.10.0-3
Severity: important
User: pytest at packages.debian.org
Usertags: pytest-v6

Hi,

python-mechanicalsoup autopkgtests fail with pytest 6 in unstable
because it uses a feature that has been removed:


https://docs.pytest.org/en/stable/deprecations.html#raises-warns-with-a-string-as-the-second-argument

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

> =================================== FAILURES ===================================
> ______________________________ test_form_noaction ______________________________
> 
>     def test_form_noaction():
>         browser, url = setup_mock_browser()
>         browser.open_fake_page(submit_form_noaction)
>         browser.select_form('#choose-submit-form')
>>       with pytest.raises(ValueError, message="no URL to submit to"):
> E       TypeError: Unexpected keyword arguments passed to pytest.raises: message
> E       Use context-manager form instead?
> 
> tests/test_stateful_browser.py:261: TypeError
> =========================== short test summary info ============================
> FAILED tests/test_stateful_browser.py::test_form_noaction - TypeError: Unexpe...
> ======================== 1 failed, 63 passed in 13.45s =========================



More information about the Python-modules-team mailing list