Skip to content

Commit b2324e3

Browse files
authored
Merge branch 'master' into PYTHON-5309
2 parents 4178fcc + 34f7d7e commit b2324e3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

doc/changelog.rst

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Version 4.12.1 is a bug fix release.
1616
errors such as: "NotImplementedError: Database objects do not implement truth value testing or bool()".
1717
- Removed Eventlet testing against Python versions newer than 3.9 since
1818
Eventlet is actively being sunset by its maintainers and has compatibility issues with PyMongo's dnspython dependency.
19+
- Fixed a bug where MongoDB cluster topology changes could cause asynchronous operations to take much longer to complete
20+
due to holding the Topology lock while closing stale connections.
1921
- Fixed a bug that would cause AsyncMongoClient to attempt to use PyOpenSSL when available, resulting in errors such as
2022
"pymongo.errors.ServerSelectionTimeoutError: 'SSLContext' object has no attribute 'wrap_bio'"
2123

test/asynchronous/test_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ async def test_init_disconnected_with_auth(self):
850850
with self.assertRaises(ConnectionFailure):
851851
await c.pymongo_test.test.find_one()
852852

853-
@async_client_context.require_no_standalone
853+
@async_client_context.require_replica_set
854854
@async_client_context.require_no_load_balancer
855855
@async_client_context.require_tls
856856
async def test_init_disconnected_with_srv(self):

test/test_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ def test_init_disconnected_with_auth(self):
825825
with self.assertRaises(ConnectionFailure):
826826
c.pymongo_test.test.find_one()
827827

828-
@client_context.require_no_standalone
828+
@client_context.require_replica_set
829829
@client_context.require_no_load_balancer
830830
@client_context.require_tls
831831
def test_init_disconnected_with_srv(self):

0 commit comments

Comments
 (0)