From f889c009ae212ecc51c0bf894d636356129b0a3c1169ce731616cbb7aaa97cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 5 Sep 2025 16:28:36 +0000 Subject: [PATCH] finally? - Add pytest-asyncio dependency and test-aio.patch to fix tests - Skip some misbehaving tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-i3ipc?expand=0&rev=23 --- python-i3ipc.changes | 3 ++- python-i3ipc.spec | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/python-i3ipc.changes b/python-i3ipc.changes index 02a5210..1b167b0 100644 --- a/python-i3ipc.changes +++ b/python-i3ipc.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- Fri Sep 5 15:21:20 UTC 2025 - Markéta Machová -- Add pytest-asyncio dependency to fix tests +- Add pytest-asyncio dependency and test-aio.patch to fix tests +- Skip some misbehaving tests ------------------------------------------------------------------- Wed May 28 11:44:55 UTC 2025 - Markéta Machová diff --git a/python-i3ipc.spec b/python-i3ipc.spec index 0d20abe..ad1702a 100644 --- a/python-i3ipc.spec +++ b/python-i3ipc.spec @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/altdesktop/i3ipc-python Source0: https://github.com/altdesktop/i3ipc-python/archive/v%{version}.tar.gz#/i3ipc-%{version}.tar.gz +# PATCH-FIX-OPENSUSE https://github.com/altdesktop/i3ipc-python/issues/217 Patch0: test-aio.patch BuildRequires: %{python_module asyncio} BuildRequires: %{python_module pip} @@ -71,13 +72,15 @@ find examples/ -name \*.py -exec chmod -x '{}' \; %python_expand %fdupes %{buildroot}%{$python_sitelib} %check + # test_shutdown_event_reconnect always fails # test_restart fails on openSUSE/SLE 15 # test_window_event is intermittent # test_detailed_window_event stucks in obs, not with the local build (https://github.com/altdesktop/i3ipc-python/issues/192) +# test_workspace gets stuck, test_event_exception and test_tick_event get lost in new asyncio loops https://github.com/altdesktop/i3ipc-python/issues/217 %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run --server-args "-screen 0 1920x1080x24" \ - $python -m pytest -k 'not (test_shutdown_event_reconnect or test_restart or test_window_event or test_detailed_window_event)' + $python -m pytest -k 'not (test_shutdown_event_reconnect or test_restart or test_window_event or test_detailed_window_event or test_workspace or test_event_exception or test_tick_event)' } %files %{python_files}