============================= test session starts ============================== platform linux -- Python 3.10.2, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush plugins: regressions-2.2.0, datadir-1.3.1 collected 9 items tests/test_cron.py . [ 11%] tests/test_event_parse.py . [ 22%] tests/test_http.py ..... [ 77%] tests/test_procedure.py .. [100%] =============================== warnings summary =============================== ../../../../../../../../usr/lib/python3.10/site-packages/redis/connection.py:2 /usr/lib/python3.10/site-packages/redis/connection.py:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.version import StrictVersion tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution :572: DeprecationWarning: find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution :1514: DeprecationWarning: FileFinder.find_loader() is deprecated and slated for removal in Python 3.12; use find_spec() instead tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution :283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead tests/test_cron.py::test_cron_execution tests/test_procedure.py::test_procedure_from_event /var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush/platypush/context/__init__.py:145: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() -- Docs: https://docs.pytest.org/en/stable/warnings.html ======================== 9 passed, 21 warnings in 9.95s ======================== Exception in thread Thread-15 (_async_stop): Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/zeroconf/_utils/asyncio.py", line 97, in run_coro_with_timeout return asyncio.run_coroutine_threadsafe(aw, loop).result( File "/usr/lib/python3.10/concurrent/futures/_base.py", line 448, in result raise TimeoutError() concurrent.futures._base.TimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush/platypush/backend/__init__.py", line 392, in unregister_service self.zeroconf.unregister_service(self.zeroconf_info) File "/usr/lib/python3.10/site-packages/zeroconf/_core.py", line 692, in unregister_service run_coro_with_timeout( File "/usr/lib/python3.10/site-packages/zeroconf/_utils/asyncio.py", line 101, in run_coro_with_timeout raise EventLoopBlocked from ex zeroconf._exceptions.EventLoopBlocked During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 946, in run self._target(*self._args, **self._kwargs) File "/var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush/platypush/backend/__init__.py", line 272, in _async_stop self.unregister_service() File "/var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush/platypush/backend/__init__.py", line 395, in unregister_service self.zeroconf_info.name, type(e).__name__, str(e))) AttributeError: 'NoneType' object has no attribute 'name' /usr/lib/python3.10/asyncio/base_events.py:666: RuntimeWarning: coroutine 'Zeroconf.async_unregister_service' was never awaited self._ready.clear() RuntimeWarning: Enable tracemalloc to get the object allocation traceback