public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-anyio] f45: Fix tests with latest Python
@ 2026-10-21 11:10 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-21 11:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-anyio
Branch : f45
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=f45
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-21 11:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 11:10 [rpms/python-anyio] f45: Fix tests 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