public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lumir Balhar <lbalhar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-urllib3] rawhide: Fix compatibility with the latest pytest
Date: Mon, 10 Aug 2026 11:11:24 GMT [thread overview]
Message-ID: <178636028423.1.13544203336942000970.rpms-python-urllib3-c60a40812cec@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-urllib3
Branch : rawhide
Commit : c60a40812cecb329ac6e0d5abb793a6dea0f1b73
Author : Lumir Balhar <lbalhar@redhat.com>
Date : 2026-08-10T10:03:48+02:00
Stats : +69/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-urllib3/c/c60a40812cecb329ac6e0d5abb793a6dea0f1b73?branch=rawhide
Log:
Fix compatibility with the latest pytest
---
diff --git a/c420e267.patch b/c420e267.patch
new file mode 100644
index 0000000..74cf1fd
--- /dev/null
+++ b/c420e267.patch
@@ -0,0 +1,66 @@
+From c420e267acb739917bee96e021ad9a2d27de8aae Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Tue, 30 Jun 2026 21:48:57 +0100
+Subject: [PATCH] Fix test failures with pytest >= 9.1 (#5094)
+
+Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
+---
+ changelog/5094.misc.rst | 1 +
+ test/test_util.py | 3 +--
+ uv.lock | 6 +++---
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+ create mode 100644 changelog/5094.misc.rst
+
+diff --git a/changelog/5094.misc.rst b/changelog/5094.misc.rst
+new file mode 100644
+index 0000000000..e6f2a24f2f
+--- /dev/null
++++ b/changelog/5094.misc.rst
+@@ -0,0 +1 @@
++Fixed test failures with pytest >= 9.1.
+diff --git a/test/test_util.py b/test/test_util.py
+index fb8f81eb7e..8612ab5eaf 100644
+--- a/test/test_util.py
++++ b/test/test_util.py
+@@ -7,7 +7,6 @@
+ import sys
+ import typing
+ import warnings
+-from itertools import chain
+ from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd
+ from unittest import mock
+ from unittest.mock import MagicMock, Mock, patch
+@@ -438,7 +437,7 @@ def test_percent_encoded_control_ipv6_zone_ids_raise(self, url: str) -> None:
+
+ @pytest.mark.parametrize(
+ "url, expected_url",
+- chain(parse_url_host_map, non_round_tripping_parse_url_host_map),
++ [*parse_url_host_map, *non_round_tripping_parse_url_host_map],
+ )
+ def test_parse_url(self, url: str, expected_url: Url) -> None:
+ returned_url = parse_url(url)
+diff --git a/uv.lock b/uv.lock
+index 03ec5fb75a..82d0c070eb 100644
+--- a/uv.lock
++++ b/uv.lock
+@@ -1707,7 +1707,7 @@ wheels = [
+
+ [[package]]
+ name = "pytest"
+-version = "9.0.3"
++version = "9.1.1"
+ source = { registry = "https://pypi.org/simple" }
+ dependencies = [
+ { name = "colorama", marker = "sys_platform == 'win32' or (extra == 'group-7-urllib3-dev' and extra == 'group-7-urllib3-dev-min-pyopenssl') or (extra == 'group-7-urllib3-dev-min-pyopenssl' and extra == 'group-7-urllib3-mypy')" },
+@@ -1718,9 +1718,9 @@ dependencies = [
+ { name = "pygments" },
+ { name = "tomli", marker = "python_full_version < '3.11' or (extra == 'group-7-urllib3-dev' and extra == 'group-7-urllib3-dev-min-pyopenssl') or (extra == 'group-7-urllib3-dev-min-pyopenssl' and extra == 'group-7-urllib3-mypy')" },
+ ]
+-sdist = { url = "https://files.pythonhosted.org/packages/7d/0d/549bd94f1a0a402dc8cf64563a117c0f3765662e2e668477624baeec44d5/pytest-9.0.3.tar.gz", hash = "sha256:b86ada508af81d19edeb213c681b1d48246c1a91d304c6c81a427674c17eb91c", size = 1572165, upload-time = "2026-04-07T17:16:18.027Z" }
++sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
+ wheels = [
+- { url = "https://files.pythonhosted.org/packages/d4/24/a372aaf5c9b7208e7112038812994107bc65a84cd00e0354a88c2c77a617/pytest-9.0.3-py3-none-any.whl", hash = "sha256:2c5efc453d45394fdd706ade797c0a81091eccd1d6e4bccfcd476e2b8e0ab5d9", size = 375249, upload-time = "2026-04-07T17:16:16.13Z" },
++ { url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
+ ]
+
+ [[package]]
diff --git a/python-urllib3.spec b/python-urllib3.spec
index 49ec528..aebd212 100644
--- a/python-urllib3.spec
+++ b/python-urllib3.spec
@@ -37,6 +37,9 @@ Patch: https://github.com/urllib3/urllib3/pull/5097.patch
# https://github.com/urllib3/urllib3/pull/5103 rebased
Patch: 5103.patch
+# Compatibility with the latest pytest
+Patch: https://github.com/urllib3/urllib3/commit/c420e267.patch
+
BuildArch: noarch
BuildRequires: python3-devel
reply other threads:[~2026-08-10 11:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178636028423.1.13544203336942000970.rpms-python-urllib3-c60a40812cec@fedoraproject.org \
--to=lbalhar@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox