Skip to content

Commit c7ff755

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents d0f91c3 + 8456293 commit c7ff755

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unified_format.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,12 @@ def setUpClass(cls):
10301030
if "retryable-writes" in cls.TEST_SPEC["description"]:
10311031
raise unittest.SkipTest("MMAPv1 does not support retryWrites=True")
10321032

1033+
@classmethod
1034+
def tearDownClass(cls):
1035+
for client in cls.mongos_clients:
1036+
client.close()
1037+
super().tearDownClass()
1038+
10331039
def setUp(self):
10341040
super().setUp()
10351041
# process schemaVersion
@@ -1121,6 +1127,8 @@ def maybe_skip_test(self, spec):
11211127
self.skipTest("PyMongo does not support timeoutMode")
11221128

11231129
def process_error(self, exception, spec):
1130+
if isinstance(exception, unittest.SkipTest):
1131+
raise
11241132
is_error = spec.get("isError")
11251133
is_client_error = spec.get("isClientError")
11261134
is_timeout_error = spec.get("isTimeoutError")

0 commit comments

Comments
 (0)