From 8305a03d04e453eeb55f7d8a7652a24c908b459fdf5332925407f5649a1dff8a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 23 Aug 2022 06:13:40 +0000 Subject: [PATCH] Accepting request 998719 from home:bnavigator:branches:devel:languages:python:mailman - Force pytest-asyncio auto mode -- 0.19.0 changed the default * https://github.com/pytest-dev/pytest-asyncio#modes OBS-URL: https://build.opensuse.org/request/show/998719 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailmanclient?expand=0&rev=26 --- python-mailmanclient.changes | 6 ++++++ python-mailmanclient.spec | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-mailmanclient.changes b/python-mailmanclient.changes index 12f103e..b0d764b 100644 --- a/python-mailmanclient.changes +++ b/python-mailmanclient.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 20 20:38:15 UTC 2022 - Ben Greiner + +- Force pytest-asyncio auto mode -- 0.19.0 changed the default + * https://github.com/pytest-dev/pytest-asyncio#modes + ------------------------------------------------------------------- Mon Jul 4 10:44:31 UTC 2022 - Ben Greiner diff --git a/python-mailmanclient.spec b/python-mailmanclient.spec index 2a283e4..fdd5acf 100644 --- a/python-mailmanclient.spec +++ b/python-mailmanclient.spec @@ -72,7 +72,10 @@ export LC_ALL=C.UTF-8 # self.socket.send(msg) # OSError: [Errno 9] Bad file descriptor export LC_ALL=C.UTF-8 -%pytest -k 'not using.rst' +%if %{pkg_vcmp python3-pytest-asyncio >= 0.19} +asynciomode="--asyncio-mode=auto" +%endif +%pytest -k 'not using.rst' $asynciomode %files %{python_files} %doc README.rst