Source: beanbag
Version: 1.9.2-1.2
Severity: important
User: pyt...@packages.debian.org
Usertags: pytest-v6

Hi,

beanbag FTBFS 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 top of the error log below has more details.

> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_beanbag/build; 
> python3.9 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 4 items
> 
> tests/test_attrdict.py F                                                 [ 
> 25%]
> tests/test_bbv1.py .                                                     [ 
> 50%]
> tests/test_bbv2.py ..                                                    
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________________________ test_manipulation 
> _______________________________
> 
>     def test_manipulation():
>         assert ad.c.d == "e"
>         assert repr(ad.foo.bar) == "<AttrDict(foo.bar)>"
>     
>         ad.foo.bar = "hello"
>         ad.foo.bar += ", world"
>         ad.foo.baz = "yaarrrr"
>     
>         assert +ad.foo == {"bar": "hello, world", "baz": "yaarrrr"}
>>       py.test.raises(KeyError, "str(ad.c.x.y.z)")
> E       TypeError: 'str(ad.c.x.y.z)' object (type: <class 'str'>) must be 
> callable
> 
> tests/test_attrdict.py:19: TypeError
> =========================== short test summary info 
> ============================
> FAILED tests/test_attrdict.py::test_manipulation - TypeError: 
> 'str(ad.c.x.y.z...
> ========================= 1 failed, 3 passed in 0.08s 
> ==========================
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_beanbag/build; python3.9 -m pytest 
> tests
> dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit 
> code 13
> make: *** [debian/rules:7: build] Error 25

Reply via email to