From 61488918f9ff63f6a9b7548d97e04f035aed5f62 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 1 Apr 2024 11:57:30 -0500 Subject: [PATCH] PYTHON-4303 Fix Unified Transaction Test Runner (#1568) --- test/unified_format.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unified_format.py b/test/unified_format.py index 2a44d530a..86056278a 100644 --- a/test/unified_format.py +++ b/test/unified_format.py @@ -1062,8 +1062,8 @@ class UnifiedSpecTestMixinV1(IntegrationTest): self.skipTest("PyMongo's open_download_stream does not cap the stream's lifetime") if "unpin after TransientTransactionError error on" in spec["description"]: - if client_context.version[0] == 8: - self.skipTest("Skipping TransientTransactionError pending PYTHON-4182") + self.skipTest("Skipping TransientTransactionError pending PYTHON-4227") + if "unpin after non-transient error on abort" in spec["description"]: if client_context.version[0] == 8: self.skipTest("Skipping TransientTransactionError pending PYTHON-4182") @@ -1252,7 +1252,7 @@ class UnifiedSpecTestMixinV1(IntegrationTest): clients = self.mongos_clients if self.mongos_clients else [self.client] for client in clients: try: - self.client.admin.command("killAllSessions", []) + client.admin.command("killAllSessions", []) except OperationFailure: # "operation was interrupted" by killing the command's # own session.