diff --git a/python-gevent.changes b/python-gevent.changes index e774192..4f6f591 100644 --- a/python-gevent.changes +++ b/python-gevent.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 8 05:50:58 UTC 2021 - Antonio Larrosa + +- Skip two tests that fail in SLE/Leap: + * skip-tests-in-leap.patch + ------------------------------------------------------------------- Fri Feb 12 10:18:37 UTC 2021 - Pedro Monreal diff --git a/python-gevent.spec b/python-gevent.spec index 07b7738..0a113e2 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -40,6 +40,7 @@ Source100: %{name}-rpmlintrc # usually, as long as no return value is used, this shouldn't be treated as an error # let's selectively disable the warning around the offending code Patch0: fix-no-return-in-nonvoid-function.patch +Patch1: skip-tests-in-leap.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} @@ -106,6 +107,10 @@ Documentation and examples for %{name}. %if 0%{?sle_version} <= 150100 && 0%{?is_opensuse} %patch0 -p1 %endif + +%if 0%{?sle_version} <= 150300 +%patch1 -p1 +%endif sed -i -e '1s!bin/env python!bin/python!' examples/*.py %build diff --git a/skip-tests-in-leap.patch b/skip-tests-in-leap.patch new file mode 100644 index 0000000..cb3d509 --- /dev/null +++ b/skip-tests-in-leap.patch @@ -0,0 +1,20 @@ +Index: gevent-21.1.2/src/greentest/3.6/test_ssl.py +=================================================================== +--- gevent-21.1.2.orig/src/greentest/3.6/test_ssl.py ++++ gevent-21.1.2/src/greentest/3.6/test_ssl.py +@@ -3186,6 +3186,7 @@ if _have_threads: + sock.do_handshake() + self.assertEqual(cm.exception.errno, errno.ENOTCONN) + ++ @unittest.skip("skip in SLE/Leap") + def test_no_shared_ciphers(self): + server_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) + server_context.load_cert_chain(SIGNED_CERTFILE) +@@ -3671,6 +3672,7 @@ if _have_threads: + self.assertEqual(sess_stat['accept'], 4) + self.assertEqual(sess_stat['hits'], 2) + ++ @unittest.skip("skip in SLE/Leap") + def test_session_handling(self): + context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) + context.verify_mode = ssl.CERT_REQUIRED