public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-anyio] f44: Fix tests with latest Python
@ 2026-10-21 11:34 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-21 11:34 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-anyio
            Branch : f44
            Commit : 7c8b15a976bb8693953def11df0437a868acde53
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-21T12:32:25+01:00
            Stats  : +20/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-anyio/c/7c8b15a976bb8693953def11df0437a868acde53?branch=f44

            Log:
            Fix tests with latest Python

Otherwise some 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/anyio-4.13.0-commit-818e4ac.patch b/anyio-4.13.0-commit-818e4ac.patch
new file mode 100644
index 0000000..7765c92
--- /dev/null
+++ b/anyio-4.13.0-commit-818e4ac.patch
@@ -0,0 +1,11 @@
+diff -Naur a/tests/streams/test_tls.py b/tests/streams/test_tls.py
+--- a/tests/streams/test_tls.py	2026-03-24 12:58:36.000000000 +0000
++++ b/tests/streams/test_tls.py	2026-10-21 12:28:18.029316850 +0100
+@@ -543,7 +543,6 @@
+         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 0f3eb4c..3eae627 100644
--- a/python-anyio.spec
+++ b/python-anyio.spec
@@ -7,12 +7,17 @@ on top of asyncio, and works in harmony with the native SC of trio itself.}
 
 Name:           python-%{srcname}
 Version:        4.13.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Compatibility layer for multiple asynchronous event loop implementations
 License:        MIT
 URL:            https://github.com/agronholm/anyio
 Source:         %{pypi_source %{srcname}}
 
+# Don't pass hostname to TLSStream.wrap() for the server stream
+# https://github.com/agronholm/anyio/commit/818e4ac441fa27e9fac893496fc5a4fbe0a58689
+# Backported to 4.13.0
+Patch:          anyio-4.13.0-commit-818e4ac.patch
+
 BuildArch:      noarch
 
 BuildRequires:  tomcli
@@ -85,6 +90,9 @@ k="${k-}${k+ and }not test_nested_exception_group_filtering"
 
 
 %changelog
+* Wed Oct 21 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 4.13.0-2
+- Fix tests with latest Python interpreter releases
+
 * Sun May 24 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 4.13.0-1
 - Update to 4.13.0 (close RHBZ#2450760)
 

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

only message in thread, other threads:[~2026-10-21 11:34 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:34 [rpms/python-anyio] f44: 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