File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1586,6 +1586,7 @@ def test_acknowledged_delete(self):
1586
1586
self .assertEqual (2 , db .test .delete_many ({}).deleted_count )
1587
1587
self .assertEqual (0 , db .test .delete_many ({}).deleted_count )
1588
1588
1589
+ @client_context .require_version_max (4 , 9 )
1589
1590
def test_manual_last_error (self ):
1590
1591
coll = self .db .get_collection ("test" , write_concern = WriteConcern (w = 0 ))
1591
1592
coll .insert_one ({"x" : 1 })
Original file line number Diff line number Diff line change @@ -1027,7 +1027,13 @@ def test_group_uuid_representation(self):
1027
1027
coll .group ([], {"_id" : uu },
1028
1028
{"count" : 0 }, reduce ))
1029
1029
1030
+ @client_context .require_version_max (5 , 0 , 99 )
1030
1031
def test_last_status (self ):
1032
+ # Skip versions like "v5.0.0-alpha0-1768-gfda1dfa" which equals:
1033
+ # Version(5, 0, 1, -1)
1034
+ if (client_context .version [:2 ] == (5 , 0 ) and
1035
+ client_context .version [- 1 ] == - 1 ):
1036
+ self .skipTest ('getLastError is not supported' )
1031
1037
# Tests many legacy API elements.
1032
1038
# We must call getlasterror on same socket as the last operation.
1033
1039
db = rs_or_single_client (maxPoolSize = 1 ).pymongo_test
You can’t perform that action at this time.
0 commit comments