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
This commit is contained in:
parent
1da55503b3
commit
b338b31734
@ -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>
|
||||
|
||||
|
@ -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})"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user