forked from pool/python-i3ipc
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
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 5 15:21:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- 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á <mmachova@suse.com>
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user