From 47a423c703e76a2d27307e38faa6a7f76734f7066f306cde9ca895e18f632836 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 16 Nov 2022 09:02:01 +0000 Subject: [PATCH] - 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 --- python-cheroot.changes | 6 ++++++ python-cheroot.spec | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/python-cheroot.changes b/python-cheroot.changes index 80632c9..6f93734 100644 --- a/python-cheroot.changes +++ b/python-cheroot.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 16 08:58:31 UTC 2022 - Daniel Garcia + +- Remove python_module macro definition +- Disable broken tests https://github.com/cherrypy/cheroot/issues/511 + ------------------------------------------------------------------- Wed May 11 16:26:15 UTC 2022 - Matej Cepl diff --git a/python-cheroot.spec b/python-cheroot.spec index 025737e..b3d2356 100644 --- a/python-cheroot.spec +++ b/python-cheroot.spec @@ -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