From b338b317349467531671316b69af4baff5c59da87d2a809aac7abec940f7b15a Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 31 Oct 2021 16:51:27 +0000 Subject: [PATCH] Accepting request 928402 from home:bnavigator:branches:devel:languages:python - Use custom hypothesis profile obs in order to suppress failing health checks OBS-URL: https://build.opensuse.org/request/show/928402 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=84 --- python-isort.changes | 6 ++++++ python-isort.spec | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/python-isort.changes b/python-isort.changes index 9a4a85f..f975c5a 100644 --- a/python-isort.changes +++ b/python-isort.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 31 16:49:09 UTC 2021 - Ben Greiner + +- Use custom hypothesis profile obs in order to suppress failing + health checks + ------------------------------------------------------------------- Fri Jul 30 08:30:57 UTC 2021 - Sebastian Wagner diff --git a/python-isort.spec b/python-isort.spec index e77f085..88daf79 100644 --- a/python-isort.spec +++ b/python-isort.spec @@ -80,6 +80,16 @@ too. %setup -q -n isort-%{version} chmod -x LICENSE +echo " +# increase test deadline for slow obs executions +import hypothesis +hypothesis.settings.register_profile( + 'obs', + deadline=5000, + suppress_health_check=[hypothesis.HealthCheck.too_slow] +) +" >> tests/conftest.py + %build %pyproject_wheel @@ -131,6 +141,7 @@ done pytest-%{$python_bin_suffix} -v \ -W "ignore::UserWarning" \ -W "ignore::DeprecationWarning" \ + --hypothesis-profile="obs" \ ${ignoretests} \ -k "not (${donttest} ${$python_donttest})" }