Skip to content

Commit 594daca

Browse files
authored
MOTOR-1315 Fix handling of explicitly skipped tests (#1642)
1 parent 49466f9 commit 594daca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unified_format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,8 @@ def maybe_skip_test(self, spec):
11211121
self.skipTest("PyMongo does not support timeoutMode")
11221122

11231123
def process_error(self, exception, spec):
1124+
if isinstance(exception, unittest.SkipTest):
1125+
raise
11241126
is_error = spec.get("isError")
11251127
is_client_error = spec.get("isClientError")
11261128
is_timeout_error = spec.get("isTimeoutError")

0 commit comments

Comments
 (0)