@@ -519,6 +519,15 @@ def maybe_skip_test(self, spec):
519519 self .skipTest ("Implement PYTHON-1894" )
520520 if "timeoutMS applied to entire download" in spec ["description" ]:
521521 self .skipTest ("PyMongo's open_download_stream does not cap the stream's lifetime" )
522+ if any (
523+ x in spec ["description" ]
524+ for x in [
525+ "First insertOne is never committed" ,
526+ "Second updateOne is never committed" ,
527+ "Third updateOne is never committed" ,
528+ ]
529+ ):
530+ self .skipTest ("Implement PYTHON-4597" )
522531
523532 class_name = self .__class__ .__name__ .lower ()
524533 description = spec ["description" ].lower ()
@@ -672,7 +681,7 @@ def process_error(self, exception, spec):
672681 self .match_evaluator .match_result (expect_result , result )
673682 else :
674683 self .fail (
675- f"expectResult can only be specified with { BulkWriteError } or { ClientBulkWriteException } exceptions"
684+ f"expectResult can only be specified with { BulkWriteError } or { ClientBulkWriteException } exceptions, got { exception } "
676685 )
677686
678687 return exception
@@ -982,13 +991,9 @@ async def run_entity_operation(self, spec):
982991 if ignore and isinstance (exc , (PyMongoError ,)):
983992 return exc
984993 if expect_error :
985- if method_name == "_collectionOperation_bulkWrite" :
986- self .skipTest ("Skipping test pending PYTHON-4598" )
987994 return self .process_error (exc , expect_error )
988995 raise
989996 else :
990- if method_name == "_collectionOperation_bulkWrite" :
991- self .skipTest ("Skipping test pending PYTHON-4598" )
992997 if expect_error :
993998 self .fail (f'Excepted error { expect_error } but "{ opname } " succeeded: { result } ' )
994999
0 commit comments