14
0

- Run tests with pytest

- Disable flaky test gh#python-websockets/websockets#1322

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=43
This commit is contained in:
2023-05-24 11:13:16 +00:00
committed by Git OBS Bridge
parent c083aba17f
commit f04943187a
2 changed files with 8 additions and 6 deletions

View File

@@ -55,12 +55,8 @@ export CFLAGS="%{optflags}"
%check
# Test execution speed depends on BS load and architecture, relax
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=10
# https://github.com/aaugustin/websockets/issues/855 is an intermittent failure
# for test_keepalive_ping_does_not_crash_when_connection_lost on s390x
# export PYTHONWARNINGS=default
# test suite temporarily broken on python 3.9.7: gh#aaugustin/websockets#1051
python39_donttest=(-k testnothing)
%pyunittest_arch -v "${$python_donttest[@]}"
# Disable flaky tests gh#python-websockets/websockets#1322
%pytest_arch -v -k "not test_close_waits_for_close_frame" tests
%files %{python_files}
%license LICENSE