From 01ae44af5671584e95fc7c489c6ba8a6c70492830d1e4e42c33146a0bc417d7d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 3 Jan 2024 09:03:23 +0000 Subject: [PATCH] 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 --- increase-tests-timeouts.patch | 23 +++++++++++++++++++++++ python-cheroot.changes | 7 +++++++ python-cheroot.spec | 4 +++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 increase-tests-timeouts.patch diff --git a/increase-tests-timeouts.patch b/increase-tests-timeouts.patch new file mode 100644 index 0000000..e9ca7f6 --- /dev/null +++ b/increase-tests-timeouts.patch @@ -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 + + diff --git a/python-cheroot.changes b/python-cheroot.changes index c202460..68fb06e 100644 --- a/python-cheroot.changes +++ b/python-cheroot.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 3 07:56:40 UTC 2024 - Antonio Larrosa + +- 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 diff --git a/python-cheroot.spec b/python-cheroot.spec index a666aee..810a2eb 100644 --- a/python-cheroot.spec +++ b/python-cheroot.spec @@ -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}