pytest 8.4 is less forgiving about functions not marked async and using it Signed-off-by: Khem Raj <[email protected]> --- ...yncio-fixture-to-test_async_receiver.patch | 32 +++++++++++++++++++ .../python/python3-blinker_1.9.0.bb | 4 +++ 2 files changed, 36 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-blinker/0001-Add-asyncio-fixture-to-test_async_receiver.patch
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 @@ +From 2edb837a27ea52ec98d2c72db3534cc764c41337 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 18 Nov 2025 13:06:49 -0800 +Subject: [PATCH] Add asyncio fixture to test_async_receiver + +This ensures that this test executes and passes +with pytest-8.4+ + +pytest now throws errors for such functions [1] +which were skipped in older versions + +[1] https://github.com/pytest-dev/pytest/issues/11372 + +Upstream-Status: Submitted [https://github.com/pallets-eco/blinker/pull/187] +Signed-off-by: Khem Raj <[email protected]> +--- + tests/test_signals.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_signals.py b/tests/test_signals.py +index 93a9c48..da88627 100644 +--- a/tests/test_signals.py ++++ b/tests/test_signals.py +@@ -256,7 +256,7 @@ def test_strong_receiver() -> None: + assert sentinel + assert [id(fn) for fn in sig.receivers.values()] == [fn_id] + +- [email protected] + async def test_async_receiver() -> None: + sentinel = [] + diff --git a/meta-python/recipes-devtools/python/python3-blinker_1.9.0.bb b/meta-python/recipes-devtools/python/python3-blinker_1.9.0.bb index f82d686a64..7ddcd04b62 100644 --- a/meta-python/recipes-devtools/python/python3-blinker_1.9.0.bb +++ b/meta-python/recipes-devtools/python/python3-blinker_1.9.0.bb @@ -2,6 +2,7 @@ DESCRIPTION = "Fast, simple object-to-object and broadcast signaling." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=42cd19c88fc13d1307a4efd64ee90e4e" +SRC_URI += "file://0001-Add-asyncio-fixture-to-test_async_receiver.patch" SRC_URI[sha256sum] = "b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf" inherit pypi python_flit_core ptest-python-pytest @@ -9,3 +10,6 @@ inherit pypi python_flit_core ptest-python-pytest RDEPENDS:${PN} += "\ python3-asyncio \ " +RDEPENDS:${PN}-ptest += "\ + python3-pytest-asyncio \ +"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#121879): https://lists.openembedded.org/g/openembedded-devel/message/121879 Mute This Topic: https://lists.openembedded.org/mt/116369325/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
