File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1030,6 +1030,12 @@ def setUpClass(cls):
1030
1030
if "retryable-writes" in cls .TEST_SPEC ["description" ]:
1031
1031
raise unittest .SkipTest ("MMAPv1 does not support retryWrites=True" )
1032
1032
1033
+ @classmethod
1034
+ def tearDownClass (cls ):
1035
+ for client in cls .mongos_clients :
1036
+ client .close ()
1037
+ super ().tearDownClass ()
1038
+
1033
1039
def setUp (self ):
1034
1040
super ().setUp ()
1035
1041
# process schemaVersion
@@ -1121,6 +1127,8 @@ def maybe_skip_test(self, spec):
1121
1127
self .skipTest ("PyMongo does not support timeoutMode" )
1122
1128
1123
1129
def process_error (self , exception , spec ):
1130
+ if isinstance (exception , unittest .SkipTest ):
1131
+ raise
1124
1132
is_error = spec .get ("isError" )
1125
1133
is_client_error = spec .get ("isClientError" )
1126
1134
is_timeout_error = spec .get ("isTimeoutError" )
You can’t perform that action at this time.
0 commit comments