15
0

- 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:
2022-11-16 09:02:01 +00:00
committed by Git OBS Bridge
parent 6bf83f4810
commit 47a423c703
2 changed files with 11 additions and 2 deletions

View File

@@ -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