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
This commit is contained in:
Tim Burke 2023-12-29 22:58:21 +00:00
parent 966340aeed
commit fe0d138eab

View File

@ -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'):