From f04943187a430c30e61064452f5e4f628c1f8c33aa98fd59a2cff3f3b94ece59 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 24 May 2023 11:13:16 +0000 Subject: [PATCH] - 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 --- python-websockets.changes | 6 ++++++ python-websockets.spec | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/python-websockets.changes b/python-websockets.changes index 09f3e13..330315d 100644 --- a/python-websockets.changes +++ b/python-websockets.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 24 11:10:45 UTC 2023 - Daniel Garcia + +- Run tests with pytest +- Disable flaky test gh#python-websockets/websockets#1322 + ------------------------------------------------------------------- Sun May 14 18:45:02 UTC 2023 - Dirk Müller diff --git a/python-websockets.spec b/python-websockets.spec index ae56c13..2261c3b 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -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