From 10559140daf0090e6dd0d5fe2ceaf61548068db8adcc2f0315bd4dc1b2ce3380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 22 Apr 2025 07:40:49 +0000 Subject: [PATCH] Accepting request 1271286 from home:ayankov:branches:devel:languages:python - Fix broken test with openssl 3.5.0: * Add patch fix-test-with-openssl-3.5.0.patch OBS-URL: https://build.opensuse.org/request/show/1271286 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=133 --- fix-test-with-openssl-3.5.0.patch | 14 ++++++++++++++ python-eventlet.changes | 6 ++++++ python-eventlet.spec | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 fix-test-with-openssl-3.5.0.patch diff --git a/fix-test-with-openssl-3.5.0.patch b/fix-test-with-openssl-3.5.0.patch new file mode 100644 index 0000000..c737c4c --- /dev/null +++ b/fix-test-with-openssl-3.5.0.patch @@ -0,0 +1,14 @@ +Index: eventlet-0.39.1/tests/ssl_test.py +=================================================================== +--- eventlet-0.39.1.orig/tests/ssl_test.py ++++ eventlet-0.39.1/tests/ssl_test.py +@@ -80,7 +80,8 @@ class SSLTest(tests.LimitedTestCase): + sock.recv(8192) + try: + self.assertEqual(b'', sock.recv(8192)) +- except greenio.SSL.ZeroReturnError: ++ except (greenio.SSL.ZeroReturnError, ++ BrokenPipeError): + pass + + sock = listen_ssl_socket() diff --git a/python-eventlet.changes b/python-eventlet.changes index 2ad4374..f85ac04 100644 --- a/python-eventlet.changes +++ b/python-eventlet.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 17 13:33:34 UTC 2025 - Lucas Mulling + +- Fix broken test with openssl 3.5.0: + * Add patch fix-test-with-openssl-3.5.0.patch + ------------------------------------------------------------------- Mon Apr 7 12:41:45 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-eventlet.spec b/python-eventlet.spec index 288bcde..87c284a 100644 --- a/python-eventlet.spec +++ b/python-eventlet.spec @@ -25,6 +25,8 @@ License: MIT Group: Development/Languages/Python URL: https://eventlet.net Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz +# PATCH-FIX-OPENSUSE: fix-test-with-openssl-3.5.0.patch bsc#1241037 -- based on PR 1034 +Patch1: fix-test-with-openssl-3.5.0.patch BuildRequires: %{python_module hatch-vcs} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel}