From fe0d138eabcec6b11aa3b7cbaf7b138fc60522a0 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 29 Dec 2023 22:58:21 +0000 Subject: [PATCH] Get tests passing with latest eventlet Previously, our tests would not just fail, but segfault on recent eventlet releases. See https://github.com/eventlet/eventlet/issues/864 and https://github.com/python/cpython/issues/113631 Fortunately, it looks like we can just avoid actually monkey-patching to dodge the bug. Closes-Bug: #2047768 Change-Id: I0dc22dab05bc00722671dca3f0e6eb1cf6e18349 --- test/unit/common/test_wsgi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/common/test_wsgi.py b/test/unit/common/test_wsgi.py index 27e5e3e07a..b7cec635a5 100644 --- a/test/unit/common/test_wsgi.py +++ b/test/unit/common/test_wsgi.py @@ -1091,6 +1091,7 @@ class TestWSGI(unittest.TestCase, ConfigAssertMixin): ] with mock.patch.object(wsgi, '_initrp', return_value=stub__initrp), \ mock.patch.object(wsgi, 'loadapp'), \ + mock.patch('swift.common.utils.monkey_patch'), \ mock.patch.object(wsgi, 'capture_stdio'): for server_type in ('account-server', 'container-server', 'object-server'):