Source: python-google-auth Version: 1.5.1-2 Severity: important User: pyt...@packages.debian.org Usertags: pytest-v6
Hi, python-google-auth FTBFS with pytest 6 in experimental because pytest.warns no longer accepts a second string argument, see https://docs.pytest.org/en/latest/changelog.html#removals The error log below has more details. > I: pybuild base:232: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_google-auth/build; python3.9 -m pytest > --ignore=tests/transport > ============================= test session starts > ============================== > platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0 > rootdir: /<<PKGBUILDDIR>> > plugins: localserver-0.5.0 > collected 252 items > > tests/test__cloud_sdk.py ............ [ > 4%] > tests/test__default.py .....F..................... [ > 15%] > tests/test__helpers.py .................. [ > 22%] > tests/test__oauth2client.py ......... [ > 26%] > tests/test__service_account_info.py .... [ > 27%] > tests/test_app_engine.py ............. [ > 32%] > tests/test_credentials.py ............ [ > 37%] > tests/test_iam.py .... [ > 39%] > tests/test_jwt.py ............................................ [ > 56%] > tests/compute_engine/test__metadata.py ............ [ > 61%] > tests/compute_engine/test_credentials.py ............. [ > 66%] > tests/crypt/test__cryptography_rsa.py ................ [ > 73%] > tests/crypt/test__python_rsa.py .................. [ > 80%] > tests/crypt/test_crypt.py .. [ > 80%] > tests/oauth2/test__client.py ............ [ > 85%] > tests/oauth2/test_credentials.py ..... [ > 87%] > tests/oauth2/test_id_token.py ...... [ > 90%] > tests/oauth2/test_service_account.py ......................... > [100%] > > =================================== FAILURES > =================================== > __________ test__load_credentials_from_file_authorized_user_cloud_sdk > __________ > > def test__load_credentials_from_file_authorized_user_cloud_sdk(): >> with pytest.warns(UserWarning, matches='Cloud SDK'): > E TypeError: Unexpected keyword arguments passed to pytest.warns: > matches > E Use context-manager form instead? > > tests/test__default.py:95: TypeError > =============================== warnings summary > =============================== > .pybuild/cpython3_3.9_google-auth/build/tests/test_jwt.py::test_decode_valid > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_google-auth/build/google/auth/jwt.py:221: > DeprecationWarning: Using or importing the ABCs from 'collections' instead > of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will > stop working > if isinstance(certs, collections.Mapping): > > -- Docs: https://docs.pytest.org/en/stable/warnings.html > =========================== short test summary info > ============================ > FAILED > tests/test__default.py::test__load_credentials_from_file_authorized_user_cloud_sdk > =================== 1 failed, 251 passed, 1 warning in 1.02s > =================== > E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_google-auth/build; python3.9 -m pytest > --ignore=tests/transport > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 > returned exit code 13 > make: *** [debian/rules:10: build] Error 25 > dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2