public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-typing-extensions] rawhide: Fix compatibility with Python 3.16
@ 2026-11-20 13:56 Karolina Surma
  0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-11-20 13:56 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-typing-extensions
Branch : rawhide
Commit : 5ce992a81e1536185a7b264220f0ac2b12a63f5e
Author : Karolina Surma <ksurma@redhat.com>
Date   : 2026-11-20T14:47:34+01:00
Stats  : +30/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-typing-extensions/c/5ce992a81e1536185a7b264220f0ac2b12a63f5e?branch=rawhide

Log:
Fix compatibility with Python 3.16

---
diff --git a/a2024556ab75799fbd2f41d1c2d114dd6372de12.patch b/a2024556ab75799fbd2f41d1c2d114dd6372de12.patch
new file mode 100644
index 0000000..64d89c1
--- /dev/null
+++ b/a2024556ab75799fbd2f41d1c2d114dd6372de12.patch
@@ -0,0 +1,27 @@
+From a2024556ab75799fbd2f41d1c2d114dd6372de12 Mon Sep 17 00:00:00 2001
+From: Khabib Shakhbanov <136262760+Khabib73@users.noreply.github.com>
+Date: Mon, 9 Nov 2026 19:50:21 +0300
+Subject: [PATCH] Skip the legacy asyncio coroutine test when its API is
+ unavailable (#819)
+
+Co-authored-by: Sebastian Rittau <sebastian.rittau@zfutura.de>
+---
+ src/test_typing_extensions.py | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py
+index 6a52632e..03bce158 100644
+--- a/src/test_typing_extensions.py
++++ b/src/test_typing_extensions.py
+@@ -992,6 +992,11 @@ async def coro(self):
+         pass
+ 
+ class DeprecatedCoroTests(BaseTestCase):
++    @skipUnless(
++        hasattr(asyncio, "coroutines")
++        and hasattr(asyncio.coroutines, "iscoroutinefunction"),
++        "asyncio.coroutines.iscoroutinefunction is unavailable",
++    )
+     def test_asyncio_iscoroutinefunction(self):
+         with warnings.catch_warnings():
+             warnings.simplefilter("ignore", DeprecationWarning)

diff --git a/python-typing-extensions.spec b/python-typing-extensions.spec
index f8c44ad..db2de35 100644
--- a/python-typing-extensions.spec
+++ b/python-typing-extensions.spec
@@ -16,6 +16,9 @@ Source:         %{pypi_source typing_extensions}
 # test_typing_extensions.LiteralTests.test_args is failing with python 3.14.7
 # https://github.com/python/typing_extensions/issues/784
 Patch:          https://github.com/python/typing_extensions/commit/79c903c7d9ec4cfa30b7ca38a795adc1c100b45a.patch
+# Skip the legacy asyncio coroutine test when its API is unavailable (Python 3.16+)
+# https://github.com/python/typing_extensions/issues/809
+Patch:          https://github.com/python/typing_extensions/commit/a2024556ab75799fbd2f41d1c2d114dd6372de12.patch
 
 BuildArch:      noarch
 

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

only message in thread, other threads:[~2026-11-20 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 13:56 [rpms/python-typing-extensions] rawhide: Fix compatibility with Python 3.16 Karolina Surma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox