Skip to content

Commit 592ad9e

Browse files
committed
skip test_cleanup_executors_on_client_del
1 parent 084c443 commit 592ad9e

File tree

3 files changed

+65
-43
lines changed

3 files changed

+65
-43
lines changed

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)