PYTHON-5791 - test_list_database_names should not check ordering (#2751)

This commit is contained in:
Noah Stapp 2026-04-13 14:01:14 -04:00 committed by GitHub
parent 08b806fd87
commit ee20ef52ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1034,7 +1034,7 @@ class TestClient(AsyncIntegrationTest):
db_names = await self.client.list_database_names()
self.assertIn("pymongo_test", db_names)
self.assertIn("pymongo_test_mike", db_names)
self.assertEqual(db_names, cmd_names)
self.assertCountEqual(db_names, cmd_names)
async def test_drop_database(self):
with self.assertRaises(TypeError):

View File

@ -1007,7 +1007,7 @@ class TestClient(IntegrationTest):
db_names = self.client.list_database_names()
self.assertIn("pymongo_test", db_names)
self.assertIn("pymongo_test_mike", db_names)
self.assertEqual(db_names, cmd_names)
self.assertCountEqual(db_names, cmd_names)
def test_drop_database(self):
with self.assertRaises(TypeError):