public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-urllib3] f45: Fix test_start_closed_socket with latest Python
Date: Tue, 13 Oct 2026 05:39:21 GMT [thread overview]
Message-ID: <179186996192.1.8974094231577591136.rpms-python-urllib3-1e1aff546d6a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-urllib3
Branch : f45
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=f45
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}
reply other threads:[~2026-10-13 5:39 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=179186996192.1.8974094231577591136.rpms-python-urllib3-1e1aff546d6a@fedoraproject.org \
--to=yselkowi@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