Source: python-mechanicalsoup
Version: 0.10.0-3
Severity: important
User: pyt...@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 
> =========================

Reply via email to