pytest 8.4+ is strict about asyncio [1]
however pyzmq is not yet fully ready, and installs its own
pytest.ini, add this to ptests package

Fixes the failures e.g.

async def functions are not natively supported.
You need to install a suitable plugin for your async framework, for example:
  - anyio
  - pytest-asyncio
  - pytest-tornasync
  - pytest-trio
  - pytest-twisted
FAIL: tests/test_auth.py:TestAsyncioAuthentication.test_deny

[1] https://github.com/pytest-dev/pytest/issues/11372

Signed-off-by: Khem Raj <[email protected]>
---
 meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb 
b/meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb
index 02518f43aa..4014879aae 100644
--- a/meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pyzmq_27.1.0.bb
@@ -59,4 +59,5 @@ RDEPENDS:${PN}-ptest += "\
 do_install_ptest() {
         install -d ${D}${PTEST_PATH}/tests
         cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+        install -m 0644 ${S}/pytest.ini ${D}${PTEST_PATH}/pytest.ini
 }
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121877): 
https://lists.openembedded.org/g/openembedded-devel/message/121877
Mute This Topic: https://lists.openembedded.org/mt/116369323/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to