Skip to content

Commit 6148891

Browse files
authored
PYTHON-4303 Fix Unified Transaction Test Runner (#1568)
1 parent add6a30 commit 6148891

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unified_format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,8 @@ def maybe_skip_test(self, spec):
10621062
self.skipTest("PyMongo's open_download_stream does not cap the stream's lifetime")
10631063

10641064
if "unpin after TransientTransactionError error on" in spec["description"]:
1065-
if client_context.version[0] == 8:
1066-
self.skipTest("Skipping TransientTransactionError pending PYTHON-4182")
1065+
self.skipTest("Skipping TransientTransactionError pending PYTHON-4227")
1066+
10671067
if "unpin after non-transient error on abort" in spec["description"]:
10681068
if client_context.version[0] == 8:
10691069
self.skipTest("Skipping TransientTransactionError pending PYTHON-4182")
@@ -1252,7 +1252,7 @@ def kill_all_sessions(self):
12521252
clients = self.mongos_clients if self.mongos_clients else [self.client]
12531253
for client in clients:
12541254
try:
1255-
self.client.admin.command("killAllSessions", [])
1255+
client.admin.command("killAllSessions", [])
12561256
except OperationFailure:
12571257
# "operation was interrupted" by killing the command's
12581258
# own session.

0 commit comments

Comments
 (0)