summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch b/meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch
new file mode 100644
index 0000000000..2f3d1dfa5d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch
@@ -0,0 +1,32 @@
1From 2edb837a27ea52ec98d2c72db3534cc764c41337 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 18 Nov 2025 13:06:49 -0800
4Subject: [PATCH] Add asyncio fixture to test_async_receiver
5
6This ensures that this test executes and passes
7with pytest-8.4+
8
9pytest now throws errors for such functions [1]
10which were skipped in older versions
11
12[1] https://github.com/pytest-dev/pytest/issues/11372
13
14Upstream-Status: Submitted [https://github.com/pallets-eco/blinker/pull/187]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 tests/test_signals.py | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/tests/test_signals.py b/tests/test_signals.py
21index 93a9c48..da88627 100644
22--- a/tests/test_signals.py
23+++ b/tests/test_signals.py
24@@ -256,7 +256,7 @@ def test_strong_receiver() -> None:
25 assert sentinel
26 assert [id(fn) for fn in sig.receivers.values()] == [fn_id]
27
28-
29+@pytest.mark.asyncio
30 async def test_async_receiver() -> None:
31 sentinel = []
32