Skip to content

Commit 6656767

Browse files
authored
PYTHON-5486 Test Gevent with Auth and SSL (#2508)
1 parent cffb906 commit 6656767

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.evergreen/generated_configs/variants.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ buildvariants:
332332
# Green framework tests
333333
- name: green-eventlet-rhel8
334334
tasks:
335-
- name: .test-standard .standalone-noauth-nossl .python-3.9 .sync
335+
- name: .test-standard .python-3.9 .sync
336336
display_name: Green Eventlet RHEL8
337337
run_on:
338338
- rhel87-small
339339
expansions:
340340
GREEN_FRAMEWORK: eventlet
341341
- name: green-gevent-rhel8
342342
tasks:
343-
- name: .test-standard .standalone-noauth-nossl .sync
343+
- name: .test-standard .sync
344344
display_name: Green Gevent RHEL8
345345
run_on:
346346
- rhel87-small

.evergreen/scripts/generate_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,11 @@ def create_green_framework_variants():
301301
variants = []
302302
host = DEFAULT_HOST
303303
for framework in ["eventlet", "gevent"]:
304-
tasks = [".test-standard .standalone-noauth-nossl .sync"]
304+
tasks = [".test-standard .sync"]
305305
if framework == "eventlet":
306306
# Eventlet has issues with dnspython > 2.0 and newer versions of CPython
307307
# https://jira.mongodb.org/browse/PYTHON-5284
308-
tasks = [".test-standard .standalone-noauth-nossl .python-3.9 .sync"]
308+
tasks = [".test-standard .python-3.9 .sync"]
309309
expansions = dict(GREEN_FRAMEWORK=framework)
310310
display_name = get_variant_name(f"Green {framework.capitalize()}", host)
311311
variant = create_variant(tasks, display_name, host=host, expansions=expansions)

test/asynchronous/test_monitor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from test.asynchronous.utils import (
2929
async_wait_until,
3030
)
31-
from test.utils_shared import ServerAndTopologyEventListener
31+
from test.utils_shared import ServerAndTopologyEventListener, gevent_monkey_patched
3232

3333
from pymongo.periodic_executor import _EXECUTORS
3434

@@ -58,6 +58,9 @@ async def create_client(self):
5858
return client
5959

6060
@unittest.skipIf("PyPy" in sys.version, "PYTHON-5283 fails often on PyPy")
61+
@unittest.skipIf(
62+
gevent_monkey_patched(), "PYTHON-5516 Resources are not cleared when using gevent"
63+
)
6164
async def test_cleanup_executors_on_client_del(self):
6265
with warnings.catch_warnings(record=True) as w:
6366
warnings.simplefilter("always")

test/test_monitor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from test.utils import (
2929
wait_until,
3030
)
31-
from test.utils_shared import ServerAndTopologyEventListener
31+
from test.utils_shared import ServerAndTopologyEventListener, gevent_monkey_patched
3232

3333
from pymongo.periodic_executor import _EXECUTORS
3434

@@ -58,6 +58,9 @@ def create_client(self):
5858
return client
5959

6060
@unittest.skipIf("PyPy" in sys.version, "PYTHON-5283 fails often on PyPy")
61+
@unittest.skipIf(
62+
gevent_monkey_patched(), "PYTHON-5516 Resources are not cleared when using gevent"
63+
)
6164
def test_cleanup_executors_on_client_del(self):
6265
with warnings.catch_warnings(record=True) as w:
6366
warnings.simplefilter("always")

0 commit comments

Comments
 (0)