Fix compatibility with pytest 8
This commit is contained in:
parent
37f4fc1429
commit
4d1f850e1f
1 changed files with 8 additions and 1 deletions
|
|
@ -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 <lbalhar@redhat.com> - 2.31.0-4
|
||||
- Fix compatibility with pytest 8
|
||||
|
||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.31.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue