forked from pool/python-isort
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:
commit
9deeb853b4
@ -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>
|
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}
|
%setup -q -n isort-%{version}
|
||||||
chmod -x LICENSE
|
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
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
@ -131,6 +141,7 @@ done
|
|||||||
pytest-%{$python_bin_suffix} -v \
|
pytest-%{$python_bin_suffix} -v \
|
||||||
-W "ignore::UserWarning" \
|
-W "ignore::UserWarning" \
|
||||||
-W "ignore::DeprecationWarning" \
|
-W "ignore::DeprecationWarning" \
|
||||||
|
--hypothesis-profile="obs" \
|
||||||
${ignoretests} \
|
${ignoretests} \
|
||||||
-k "not (${donttest} ${$python_donttest})"
|
-k "not (${donttest} ${$python_donttest})"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user