forked from pool/python-cheroot
- Remove python_module macro definition
- Disable broken tests https://github.com/cherrypy/cheroot/issues/511 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=48
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define pypi_name cheroot
|
||||
%bcond_without python2
|
||||
%bcond_with ringdisabled
|
||||
@@ -114,7 +113,11 @@ pushd testclean
|
||||
%python_expand pytest_opts+=" --ignore %{buildroot}%{$python_sitelib}/cheroot/test/test_wsgi.py"
|
||||
%endif
|
||||
# test_tls_client_auth[...-False-localhost-builtin] fails ocassionally on server-side OBS
|
||||
%pytest --pyargs cheroot $pytest_opts -k "not (test_tls_client_auth and False-localhost-builtin)"
|
||||
donttest="(test_tls_client_auth and False-localhost-builtin)"
|
||||
# looks like there's a bug with pytest.mark.forked
|
||||
# https://github.com/cherrypy/cheroot/issues/511
|
||||
donttest+=" or test_high_number_of_file_descriptor"
|
||||
%pytest --pyargs cheroot $pytest_opts -k "not ($donttest)"
|
||||
popd
|
||||
|
||||
%pre
|
||||
|
||||
Reference in New Issue
Block a user