From 272e039b049cbb806b9ea23c7c79903a628401d0 Mon Sep 17 00:00:00 2001 From: Iris Date: Tue, 15 Sep 2026 10:24:13 -0700 Subject: [PATCH] PYTHON-6081 test_list_collections in test_typing.py fails when the test database is empty --- test/test_typing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_typing.py b/test/test_typing.py index 5ec58e5195..24ef06755f 100644 --- a/test/test_typing.py +++ b/test/test_typing.py @@ -203,6 +203,8 @@ def test_command(self) -> None: result.items() def test_list_collections(self) -> None: + self.client.test.test_list_collections.insert_one({}) + self.addCleanup(self.client.test.drop_collection, "test_list_collections") cursor = self.client.test.list_collections() value = cursor.next() value.items()