Skip to content

Commit

Permalink
Add back 'str' as sorting key
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly committed Jul 17, 2024
1 parent 2536cbf commit d63f8eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ def check_solution_networkx(solution, candidates):
# candidates (containing tuples dict `{(i, j): data}`)
solution_list = sorted(
[((i, j), data["flow"]) for i, j, data in solution.edges(data=True)],
key=str,
)
return any(solution_list == sorted(candidate) for candidate in candidates)
return any(solution_list == sorted(candidate, key=str) for candidate in candidates)

0 comments on commit d63f8eb

Please sign in to comment.