Accepting request 1141312 from devel:languages:python

- Disable broken tests with openssl 3.2 and python < 3.11 bsc#1217782

OBS-URL: https://build.opensuse.org/request/show/1141312
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-websockets?expand=0&rev=26
This commit is contained in:
Ana Guerrero 2024-01-29 21:25:50 +00:00 committed by Git OBS Bridge
commit d16e1f2cab
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 24 16:29:29 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Disable broken tests with openssl 3.2 and python < 3.11 bsc#1217782
-------------------------------------------------------------------
Wed Dec 6 09:18:32 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-websockets
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -56,7 +56,10 @@ export CFLAGS="%{optflags}"
# Test execution speed depends on BS load and architecture, relax
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=10
# Disable flaky tests gh#python-websockets/websockets#1322
%pytest_arch -v -k "not test_close_waits_for_close_frame" tests
donttest="test_close_waits_for_close_frame"
# Disable broken tests with openssl 3.2 and python < 3.11
donttest+=" or test_reject_invalid_server_certificate"
%pytest_arch -v -k "not ($donttest)" tests
%files %{python_files}
%license LICENSE