From 5ab2be10ee258238c86a0a02a232622d160f33c6d7a27a59f98c84a2a228aa60 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 10 Jan 2024 09:41:23 +0000 Subject: [PATCH] - Run tests with --pyargs OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trio?expand=0&rev=42 --- python-trio.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-trio.spec b/python-trio.spec index 4f13579..41fc8b0 100644 --- a/python-trio.spec +++ b/python-trio.spec @@ -92,10 +92,16 @@ has an obsessive focus on usability and correctness. %if %{with test} # test_static_tool_sees_all_symbols uses jedi/pylint for static analysis, # pointless for us. +donttest="test_static_tool_sees_all_symbols" # test_SSLStream_generic deadlocks in OBS +donttest+=" or test_SSLStream_generic" # test_close_at_bad_time_for_send_all fails on PPC https://github.com/python-trio/trio/issues/1753 +donttest+=" or test_close_at_bad_time_for_send_all" # test_local_address_real fails on qemu_linux_user targets -%pytest -k 'not (test_static_tool_sees_all_symbols or test_SSLStream_generic or test_close_at_bad_time_for_send_all or test_local_address_real)' +donttest+=" or test_local_address_real" +# Don't run lint tests +donttest+=" or run_black or run_ruff or lint_failure or test_process" +%pytest -m 'not redistributors_should_skip' -k "not ($donttest)" --pyargs trio -p trio._tests.pytest_plugin %endif %if %{without test}