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-anyio] rawhide: Fix tests with latest Python
Date: Wed, 21 Oct 2026 11:04:17 GMT [thread overview]
Message-ID: <179258065782.1.15959049703464937828.rpms-python-anyio-47fe647eec12@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-anyio
Branch : rawhide
Commit : 47fe647eec1268ffab054ed7ea3b958a3f0addbc
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-10-20T22:30:30-04:00
Stats : +33/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-anyio/c/47fe647eec1268ffab054ed7ea3b958a3f0addbc?branch=rawhide
Log:
Fix tests with latest Python
Otherwise 9 tests fail with the following:
ValueError: server_hostname can only be specified in client mode
https://bugs.debian.org/1149824
https://bugs.gentoo.org/983625
https://github.com/agronholm/anyio/commit/818e4ac441fa27e9fac893496fc5a4fbe0a58689
---
diff --git a/818e4ac441fa27e9fac893496fc5a4fbe0a58689.patch b/818e4ac441fa27e9fac893496fc5a4fbe0a58689.patch
new file mode 100644
index 0000000..7e18e7b
--- /dev/null
+++ b/818e4ac441fa27e9fac893496fc5a4fbe0a58689.patch
@@ -0,0 +1,31 @@
+From 818e4ac441fa27e9fac893496fc5a4fbe0a58689 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
+Date: Sat, 3 Oct 2026 00:20:27 +0300
+Subject: [PATCH] Don't pass `hostname` to TLSStream.wrap() for the server
+ stream
+
+This breaks on newer Pythons (3.12.15+)
+---
+ tests/streams/test_tls.py | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/tests/streams/test_tls.py b/tests/streams/test_tls.py
+index 07334c392..0f5c2d375 100644
+--- a/tests/streams/test_tls.py
++++ b/tests/streams/test_tls.py
+@@ -117,7 +117,6 @@ async def server() -> None:
+ async with await TLSStream.wrap(
+ server_stream,
+ server_side=True,
+- hostname="localhost",
+ ssl_context=server_context,
+ ):
+ pass
+@@ -604,7 +603,6 @@ async def server() -> None:
+ async with await TLSStream.wrap(
+ server_stream,
+ server_side=True,
+- hostname="localhost",
+ ssl_context=server_context,
+ ) as server_tls_stream:
+ message = await server_tls_stream.receive()
diff --git a/python-anyio.spec b/python-anyio.spec
index dac0d21..949dbac 100644
--- a/python-anyio.spec
+++ b/python-anyio.spec
@@ -16,6 +16,8 @@ Source: %{pypi_source %{srcname}}
# Add the `network` marker to `test_sourceless_install`
# https://github.com/agronholm/anyio/pull/1377
Patch: %{url}/pull/1377.patch
+# Don't pass hostname to TLSStream.wrap() for the server stream
+Patch: %{url}/commit/818e4ac441fa27e9fac893496fc5a4fbe0a58689.patch
BuildArch: noarch
reply other threads:[~2026-10-21 11:04 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=179258065782.1.15959049703464937828.rpms-python-anyio-47fe647eec12@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