diff --git a/test/asynchronous/unified_format.py b/test/asynchronous/unified_format.py index be2372f22..6ce8f852c 100644 --- a/test/asynchronous/unified_format.py +++ b/test/asynchronous/unified_format.py @@ -1458,7 +1458,7 @@ class UnifiedSpecTestMixinV1(AsyncIntegrationTest): read_concern=ReadConcern(level="local"), ) - if expected_documents: + if expected_documents is not None: sorted_expected_documents = sorted(expected_documents, key=lambda doc: doc["_id"]) actual_documents = await coll.find({}, sort=[("_id", ASCENDING)]).to_list() self.assertListEqual(sorted_expected_documents, actual_documents) diff --git a/test/unified_format.py b/test/unified_format.py index 9e3dc1fed..9aee28725 100644 --- a/test/unified_format.py +++ b/test/unified_format.py @@ -1445,7 +1445,7 @@ class UnifiedSpecTestMixinV1(IntegrationTest): read_concern=ReadConcern(level="local"), ) - if expected_documents: + if expected_documents is not None: sorted_expected_documents = sorted(expected_documents, key=lambda doc: doc["_id"]) actual_documents = coll.find({}, sort=[("_id", ASCENDING)]).to_list() self.assertListEqual(sorted_expected_documents, actual_documents)