@@ -519,6 +519,15 @@ def maybe_skip_test(self, spec):
519
519
self .skipTest ("Implement PYTHON-1894" )
520
520
if "timeoutMS applied to entire download" in spec ["description" ]:
521
521
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" )
522
531
523
532
class_name = self .__class__ .__name__ .lower ()
524
533
description = spec ["description" ].lower ()
@@ -672,7 +681,7 @@ def process_error(self, exception, spec):
672
681
self .match_evaluator .match_result (expect_result , result )
673
682
else :
674
683
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 } "
676
685
)
677
686
678
687
return exception
@@ -982,13 +991,9 @@ async def run_entity_operation(self, spec):
982
991
if ignore and isinstance (exc , (PyMongoError ,)):
983
992
return exc
984
993
if expect_error :
985
- if method_name == "_collectionOperation_bulkWrite" :
986
- self .skipTest ("Skipping test pending PYTHON-4598" )
987
994
return self .process_error (exc , expect_error )
988
995
raise
989
996
else :
990
- if method_name == "_collectionOperation_bulkWrite" :
991
- self .skipTest ("Skipping test pending PYTHON-4598" )
992
997
if expect_error :
993
998
self .fail (f'Excepted error { expect_error } but "{ opname } " succeeded: { result } ' )
994
999
0 commit comments