public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-urllib3] rawhide: Fix test_start_closed_socket with latest Python
@ 2026-10-13  5:27 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-13  5:27 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-urllib3
            Branch : rawhide
            Commit : 1e1aff546d6a6c882d3530adc8bc612bb2126acc
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-12T22:59:42-04:00
            Stats  : +37/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-urllib3/c/1e1aff546d6a6c882d3530adc8bc612bb2126acc?branch=rawhide

            Log:
            Fix test_start_closed_socket with latest Python

https://github.com/urllib3/urllib3/pull/5289

---
diff --git a/be5a3f30aae8e0ee89759083b8ec01cfe8d60195.patch b/be5a3f30aae8e0ee89759083b8ec01cfe8d60195.patch
new file mode 100644
index 0000000..5570ba1
--- /dev/null
+++ b/be5a3f30aae8e0ee89759083b8ec01cfe8d60195.patch
@@ -0,0 +1,33 @@
+From be5a3f30aae8e0ee89759083b8ec01cfe8d60195 Mon Sep 17 00:00:00 2001
+From: Rodrigo Stachlewski Palma
+ <86628053+Rodrigo-Palma@users.noreply.github.com>
+Date: Fri, 2 Oct 2026 18:49:44 -0300
+Subject: [PATCH] Pass server_hostname in test_start_closed_socket (#5289)
+
+Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
+---
+ changelog/5289.misc.rst   | 1 +
+ test/test_ssltransport.py | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+ create mode 100644 changelog/5289.misc.rst
+
+diff --git a/changelog/5289.misc.rst b/changelog/5289.misc.rst
+new file mode 100644
+index 0000000000..51e28999e8
+--- /dev/null
++++ b/changelog/5289.misc.rst
+@@ -0,0 +1 @@
++Fixed SSL transport test failures on Python 3.10.22+, 3.11.17+, 3.12.15+, 3.13.16+, and 3.14.8+.
+diff --git a/test/test_ssltransport.py b/test/test_ssltransport.py
+index 7a7d8ed820..103bf8f441 100644
+--- a/test/test_ssltransport.py
++++ b/test/test_ssltransport.py
+@@ -136,7 +136,7 @@ def test_start_closed_socket(self) -> None:
+         context = ssl.create_default_context()
+         sock.close()
+         with pytest.raises(OSError):
+-            SSLTransport(sock, context)
++            SSLTransport(sock, context, server_hostname="localhost")
+ 
+     @pytest.mark.timeout(PER_TEST_TIMEOUT)
+     def test_close_after_handshake(self) -> None:

diff --git a/python-urllib3.spec b/python-urllib3.spec
index 32994fe..e2dc379 100644
--- a/python-urllib3.spec
+++ b/python-urllib3.spec
@@ -31,6 +31,10 @@ Source0:        %{url}/archive/%{version}/urllib3-%{version}.tar.gz
 %global hypercorn_commit d1719f8c1570cbd8e6a3719ffdb14a4d72880abb
 Source1:        %{hypercorn_url}/archive/%{hypercorn_commit}/hypercorn-%{hypercorn_commit}.tar.gz
 
+# fix ValueError: check_hostname requires server_hostname with latest Python
+# https://github.com/urllib3/urllib3/pull/5289
+Patch0:         %{url}/commit/be5a3f30aae8e0ee89759083b8ec01cfe8d60195.patch
+
 BuildArch:      noarch
 
 %if %{with tests}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-13  5:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13  5:27 [rpms/python-urllib3] rawhide: Fix test_start_closed_socket with latest Python Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox