diff --git a/test/unified_format.py b/test/unified_format.py index ec32a5913..22a90fb6b 100644 --- a/test/unified_format.py +++ b/test/unified_format.py @@ -614,6 +614,8 @@ class MatchEvaluatorUtil(object): def coerce_result(opname, result): """Convert a pymongo result into the spec's result format.""" + if hasattr(result, 'acknowledged') and not result.acknowledged: + return {'acknowledged': False} if opname == 'bulkWrite': return parse_bulk_write_result(result) if opname == 'insertOne':