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] f44: Fix tests with latest Python
Date: Wed, 21 Oct 2026 11:34:27 GMT [thread overview]
Message-ID: <179258246734.1.2707205136618667157.rpms-python-anyio-7c8b15a976bb@fedoraproject.org> (raw)
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)
reply other threads:[~2026-10-21 11:34 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=179258246734.1.2707205136618667157.rpms-python-anyio-7c8b15a976bb@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