Source: s3ql
Version: 3.3.2+dfsg-2
Severity: important
User: pyt...@packages.debian.org
Usertags: pytest-v6

Hi,

s3ql FTBFS with pytest 6 in experimental because it uses a
removed feature "catch_log_handler", see:

    https://docs.pytest.org/en/stable/changelog.html#id60

The error log below has more details.

> HOME=/<<PKGBUILDDIR>>/debian/tmphome py.test-3 --logdebug=s3ql.verify tests/
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0 -- 
> /usr/bin/python3
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>/tests, configfile: pytest.ini
> collecting ... collected 346 items
> 
> tests/t1_backends.py::test_read_write[local/aes] ERROR                   [  
> 0%]
> tests/t1_backends.py::test_read_write[local/aes] ERROR                   [  
> 0%]
> 
> ==================================== ERRORS 
> ====================================
> _________________ ERROR at setup of test_read_write[local/aes] 
> _________________
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/pytest_checklogs.py", line 137, in 
> pytest_runtest_setup
>     check_output(item)
>   File "/<<PKGBUILDDIR>>/tests/pytest_checklogs.py", line 133, in check_output
>     check_test_log(item.catch_log_handler)
> AttributeError: 'Function' object has no attribute 'catch_log_handler'
> _______________ ERROR at teardown of test_read_write[local/aes] 
> ________________
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/pytest_checklogs.py", line 143, in 
> pytest_runtest_teardown
>     check_output(item)
>   File "/<<PKGBUILDDIR>>/tests/pytest_checklogs.py", line 133, in check_output
>     check_test_log(item.catch_log_handler)
> AttributeError: 'Function' object has no attribute 'catch_log_handler'
> =========================== short test summary info 
> ============================
> ERROR tests/t1_backends.py::test_read_write[local/aes] - AttributeError: 
> 'Fun...
> ERROR tests/t1_backends.py::test_read_write[local/aes] - AttributeError: 
> 'Fun...
> !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 2 failures 
> !!!!!!!!!!!!!!!!!!!!!!!!!!!
> ============================== 2 errors in 0.95s 
> ===============================
> make[1]: *** [debian/rules:56: override_dh_auto_test] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:8: build] Error 2
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to