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