File tree Expand file tree Collapse file tree 3 files changed +65
-43
lines changed Expand file tree Collapse file tree 3 files changed +65
-43
lines changed Original file line number Diff line number Diff line change 2828from 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
3333from 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" )
Original file line number Diff line number Diff line change 2828from 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
3333from 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" )
You can’t perform that action at this time.
0 commit comments