PYTHON-4303 Fix Unified Transaction Test Runner (#1568)

This commit is contained in:
Steven Silvester 2024-04-01 11:57:30 -05:00 committed by GitHub
parent add6a30766
commit 61488918f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.