15
0

Accepting request 1136399 from home:alarrosa:branches:devel:languages:python

- Add patch to increase tests timeouts in s390x where tests take
  a bit longer to run:
  * increase-tests-timeouts.patch

OBS-URL: https://build.opensuse.org/request/show/1136399
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=59
This commit is contained in:
2024-01-03 09:03:23 +00:00
committed by Git OBS Bridge
parent 3e070229ef
commit 01ae44af56
3 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
Index: cheroot-9.0.0/cheroot/test/conftest.py
===================================================================
--- cheroot-9.0.0.orig/cheroot/test/conftest.py
+++ cheroot-9.0.0/cheroot/test/conftest.py
@@ -9,7 +9,7 @@ import time
import pytest
-from cheroot._compat import IS_MACOS, IS_WINDOWS # noqa: WPS436
+from cheroot._compat import IS_MACOS, IS_WINDOWS, PLATFORM_ARCH # noqa: WPS436
from cheroot.server import Gateway, HTTPServer
from cheroot.testing import ( # noqa: F401 # pylint: disable=unused-import
native_server, wsgi_server,
@@ -28,6 +28,9 @@ def http_request_timeout():
if IS_WINDOWS:
computed_timeout *= 10
+ if PLATFORM_ARCH == 's390x':
+ computed_timeout *= 2
+
return computed_timeout

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 3 07:56:40 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- Add patch to increase tests timeouts in s390x where tests take
a bit longer to run:
* increase-tests-timeouts.patch
-------------------------------------------------------------------
Fri Dec 29 18:07:41 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# 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
@@ -38,6 +38,8 @@ Source99: cheroot.rpmlintrc
Patch0: no-pypytools.patch
# PATCH-FIX-UPSTREAM no-relative-imports.patch bsc#[0-9]+ mcepl@suse.com
Patch1: no-relative-imports.patch
# PATCH-FIX-SUSE increase-tests-timeouts.patch alarrosa@suse.com Tests take longer to run in s390x
Patch2: increase-tests-timeouts.patch
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module importlib-metadata if %python-base < 3.8}
BuildRequires: %{python_module jaraco.functools}