forked from pool/python-cheroot
Accepting request 948103 from home:bnavigator:branches:devel:languages:python
- Work around xdist related conftest import error OBS-URL: https://build.opensuse.org/request/show/948103 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=42
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 22 12:25:02 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Work around xdist related conftest import error
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 21 16:53:38 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -104,15 +104,16 @@ sed -i '/--cov/ d' pytest.ini
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
mkdir testclean
|
||||
pushd testclean
|
||||
%if %{with ringdisabled}
|
||||
# skip this test file (1 test only) in Factory staging, because we
|
||||
# do not want to add python-jaraco.context to Ring1
|
||||
pytest_opts="--ignore cheroot/test/test_wsgi.py"
|
||||
%endif
|
||||
# https://github.com/cherrypy/cheroot/issues/355
|
||||
pytest_opts+=" -p no:threadexception"
|
||||
# test_tls_client_auth[...-False-localhost-builtin] fails ocassionally on server-side OBS
|
||||
%pytest $pytest_opts -k "not (test_tls_client_auth and False-localhost-builtin)"
|
||||
%pytest --pyargs cheroot $pytest_opts -k "not (test_tls_client_auth and False-localhost-builtin)"
|
||||
popd
|
||||
|
||||
%pre
|
||||
# If libalternatives is used: Removing old update-alternatives entries.
|
||||
|
||||
Reference in New Issue
Block a user