Skip to content

Commit bd7b18e

Browse files
committed
Adding one more file with fixed linter errors.
1 parent 25ae215 commit bd7b18e

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

tests/test_asyncio/test_cluster_transaction.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,12 @@ async def test_retry_transaction_during_unfinished_slot_migration(self, r):
125125
slot = r.keyslot(key)
126126
node_migrating, node_importing = _find_source_and_target_node_for_slot(r, slot)
127127

128-
with patch.object(
129-
ClusterNode, "parse_response"
130-
) as parse_response, patch.object(
131-
NodesManager, "_update_moved_slots"
132-
) as manager_update_moved_slots:
128+
with (
129+
patch.object(ClusterNode, "parse_response") as parse_response,
130+
patch.object(
131+
NodesManager, "_update_moved_slots"
132+
) as manager_update_moved_slots,
133+
):
133134

134135
def ask_redirect_effect(connection, *args, **options):
135136
if "MULTI" in args:
@@ -167,11 +168,12 @@ async def test_retry_transaction_during_slot_migration_successful(
167168
slot = r.keyslot(key)
168169
node_migrating, node_importing = _find_source_and_target_node_for_slot(r, slot)
169170

170-
with patch.object(
171-
ClusterNode, "parse_response"
172-
) as parse_response, patch.object(
173-
NodesManager, "_update_moved_slots"
174-
) as manager_update_moved_slots:
171+
with (
172+
patch.object(ClusterNode, "parse_response") as parse_response,
173+
patch.object(
174+
NodesManager, "_update_moved_slots"
175+
) as manager_update_moved_slots,
176+
):
175177

176178
def ask_redirect_effect(conn, *args, **options):
177179
# first call should go here, we trigger an AskError

0 commit comments

Comments
 (0)