From 4d1f850e1f73cdc1fb8523ac4d7598199fcea92b Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Thu, 11 Apr 2024 10:28:48 +0200 Subject: [PATCH] Fix compatibility with pytest 8 --- python-requests.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index ef31a1d..631990b 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -6,7 +6,7 @@ Name: python-requests Version: 2.31.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: HTTP library, written in Python, for human beings License: Apache-2.0 @@ -63,6 +63,10 @@ sed -i '/#!\/usr\/.*python/d' requests/certs.py # change the docs. Thus, we set pytest not to run doctests at all. sed -i 's/ --doctest-modules//' pyproject.toml +# Fix compatibility with pytest 8 +# Upstream report: https://github.com/psf/requests/issues/6679 +sed -i "/pytest.warns/s/None//" tests/test_requests.py + %build %pyproject_wheel @@ -87,6 +91,9 @@ sed -i 's/ --doctest-modules//' pyproject.toml %changelog +* Thu Apr 11 2024 Lumír Balhar - 2.31.0-4 +- Fix compatibility with pytest 8 + * Fri Jan 26 2024 Fedora Release Engineering - 2.31.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild