forked from pool/python-trio
- Run tests with --pyargs
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trio?expand=0&rev=42
This commit is contained in:
@@ -92,10 +92,16 @@ has an obsessive focus on usability and correctness.
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
# test_static_tool_sees_all_symbols uses jedi/pylint for static analysis,
|
# test_static_tool_sees_all_symbols uses jedi/pylint for static analysis,
|
||||||
# pointless for us.
|
# pointless for us.
|
||||||
|
donttest="test_static_tool_sees_all_symbols"
|
||||||
# test_SSLStream_generic deadlocks in OBS
|
# 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
|
# 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
|
# 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
|
%endif
|
||||||
|
|
||||||
%if %{without test}
|
%if %{without test}
|
||||||
|
Reference in New Issue
Block a user