From bd44a51d1d75ffc6acb9ee81741e8b8f3ba02b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Wed, 15 Jun 2022 22:40:38 +0200 Subject: [PATCH] Disable broken test for compatibility with Python 3.11 @pytest.mark.xfail(reason=("FIXME: 301 cache works only with follow_redirects, should work regardless")) def test_get_301_no_redirect(): --- python-httplib2.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python-httplib2.spec b/python-httplib2.spec index 19db226..11312d3 100644 --- a/python-httplib2.spec +++ b/python-httplib2.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 0.20.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Comprehensive HTTP client library License: MIT URL: https://pypi.python.org/pypi/httplib2 @@ -52,6 +52,8 @@ sed -i '/--cov/d' setup.cfg %check +# test_get_301_no_redirect is disabled because it leads to Segfault on Python 3.11 +# the other disabled tests are broken PySocks tests PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k "not test_unknown_server \ and not test_socks5_auth and not \ test_server_not_found_error_is_raised_for_invalid_hostname and not \ @@ -60,7 +62,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k "not test_unknown_server \ test_invalid_ca_certs_path and not test_max_tls_version and not \ test_get_301_via_https and not test_client_cert_password_verified and not\ test_get_via_https and not test_min_tls_version and not\ - test_client_cert_verified and not test_inject_space" + test_client_cert_verified and not test_inject_space and not test_get_301_no_redirect" %files -n python3-%{srcname} @@ -69,6 +71,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k "not test_unknown_server \ %{python3_sitelib}/%{srcname}/ %changelog +* Wed Jun 15 2022 Tomáš Hrnčiar - 0.20.4-3 +- Disable broken test for compatibility with Python 3.11 + * Tue Jun 14 2022 Python Maint - 0.20.4-2 - Rebuilt for Python 3.11