Accepting request 928403 from devel:languages:python

- Use custom hypothesis profile obs in order to suppress failing
  health checks (forwarded request 928402 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/928403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=28
This commit is contained in:
Dominique Leuenberger 2021-11-03 16:25:17 +00:00 committed by Git OBS Bridge
commit 9deeb853b4
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Oct 31 16:49:09 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Use custom hypothesis profile obs in order to suppress failing
health checks
-------------------------------------------------------------------
Fri Jul 30 08:30:57 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

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