Skip to content

Commit fa431ad

Browse files
committed
Snapshot root state after lazy path queries
1 parent ec60553 commit fa431ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_path.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def test_add_root_preserves_better_distances(
6262
new_root = tuple(size // 2 for size in shape)
6363
pathfinder.add_root(origin, value=first_value)
6464
pathfinder.resolve(new_root if partial else None)
65+
old_path = pathfinder.path_from(new_root).copy()
6566
old_distances = pathfinder.distance.copy()
6667
old_traversal = pathfinder.traversal.copy()
67-
old_path = pathfinder.path_from(new_root).copy()
6868
value = int(old_distances[new_root]) + relative_value
6969
pathfinder.add_root(new_root, value=value)
7070
if relative_value >= 0:

0 commit comments

Comments
 (0)