Commit 75ea2ec7 authored by Romain Courteaud's avatar Romain Courteaud

Sort list before comparing

parent f9f3d395
No related merge requests found
...@@ -174,6 +174,8 @@ else:\n ...@@ -174,6 +174,8 @@ else:\n
\n \n
predecessor_list = requester_instance.getPredecessorList() + [request_software_instance_url]\n predecessor_list = requester_instance.getPredecessorList() + [request_software_instance_url]\n
uniq_predecessor_list = list(set(predecessor_list))\n uniq_predecessor_list = list(set(predecessor_list))\n
predecessor_list.sort()\n
uniq_predecessor_list.sort()\n
\n \n
assert predecessor_list == uniq_predecessor_list, "%s != %s" % (predecessor_list, uniq_predecessor_list)\n assert predecessor_list == uniq_predecessor_list, "%s != %s" % (predecessor_list, uniq_predecessor_list)\n
\n \n
......
25 26
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment