Skip to content

Commit 70f0c96

Browse files
author
继盛
committed
Fix ut
1 parent 93c12ff commit 70f0c96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mars/services/task/analyzer/assigner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ def _assign_by_bfs(
164164
def _build_undirected_chunk_graph(
165165
self, chunk_to_assign: List[ChunkData]
166166
) -> ChunkGraph:
167-
chunk_graph = ChunkGraph()
168-
self._chunk_graph.copyto(chunk_graph)
167+
chunk_graph = self._chunk_graph.copy()
169168
# remove edges for all chunk_to_assign which may contain chunks
170169
# that need be reassigned
171170
for chunk in chunk_to_assign:

0 commit comments

Comments
 (0)