PYTHON-5486 Test Gevent with Auth and SSL (#2508)

This commit is contained in:
Steven Silvester 2025-08-27 11:24:47 -05:00 committed by GitHub
parent cffb9069fd
commit 6656767850
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 6 deletions

View File

@ -332,7 +332,7 @@ buildvariants:
# Green framework tests
- name: green-eventlet-rhel8
tasks:
- name: .test-standard .standalone-noauth-nossl .python-3.9 .sync
- name: .test-standard .python-3.9 .sync
display_name: Green Eventlet RHEL8
run_on:
- rhel87-small
@ -340,7 +340,7 @@ buildvariants:
GREEN_FRAMEWORK: eventlet
- name: green-gevent-rhel8
tasks:
- name: .test-standard .standalone-noauth-nossl .sync
- name: .test-standard .sync
display_name: Green Gevent RHEL8
run_on:
- rhel87-small

View File

@ -301,11 +301,11 @@ def create_green_framework_variants():
variants = []
host = DEFAULT_HOST
for framework in ["eventlet", "gevent"]:
tasks = [".test-standard .standalone-noauth-nossl .sync"]
tasks = [".test-standard .sync"]
if framework == "eventlet":
# Eventlet has issues with dnspython > 2.0 and newer versions of CPython
# https://jira.mongodb.org/browse/PYTHON-5284
tasks = [".test-standard .standalone-noauth-nossl .python-3.9 .sync"]
tasks = [".test-standard .python-3.9 .sync"]
expansions = dict(GREEN_FRAMEWORK=framework)
display_name = get_variant_name(f"Green {framework.capitalize()}", host)
variant = create_variant(tasks, display_name, host=host, expansions=expansions)

View File

@ -28,7 +28,7 @@ from test.asynchronous import AsyncIntegrationTest, async_client_context, connec
from test.asynchronous.utils import (
async_wait_until,
)
from test.utils_shared import ServerAndTopologyEventListener
from test.utils_shared import ServerAndTopologyEventListener, gevent_monkey_patched
from pymongo.periodic_executor import _EXECUTORS
@ -58,6 +58,9 @@ class TestMonitor(AsyncIntegrationTest):
return client
@unittest.skipIf("PyPy" in sys.version, "PYTHON-5283 fails often on PyPy")
@unittest.skipIf(
gevent_monkey_patched(), "PYTHON-5516 Resources are not cleared when using gevent"
)
async def test_cleanup_executors_on_client_del(self):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")

View File

@ -28,7 +28,7 @@ from test import IntegrationTest, client_context, connected, unittest
from test.utils import (
wait_until,
)
from test.utils_shared import ServerAndTopologyEventListener
from test.utils_shared import ServerAndTopologyEventListener, gevent_monkey_patched
from pymongo.periodic_executor import _EXECUTORS
@ -58,6 +58,9 @@ class TestMonitor(IntegrationTest):
return client
@unittest.skipIf("PyPy" in sys.version, "PYTHON-5283 fails often on PyPy")
@unittest.skipIf(
gevent_monkey_patched(), "PYTHON-5516 Resources are not cleared when using gevent"
)
def test_cleanup_executors_on_client_del(self):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")