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})" }