[Freeipa-devel] [PATCH] 0018 Do not sort dictionaries in assert_deepequal utility function

Petr Viktorin pviktori at redhat.com
Wed Apr 17 10:05:46 UTC 2013


On 04/15/2013 03:40 PM, Ana Krivokapic wrote:
> Sorting lists of dictionaries in assert_deepequal was causing
> inconsistencies in unit test execution. To fix this, do not sort lists
> if their elements are dictionaries.
>
> See the ticket description and comments for more information and example
> how to reproduce the problem.
>
> https://fedorahosted.org/freeipa/ticket/3562

The problem here is that the order in which entries are returned from DS 
is also undefined. The patch swaps one undefined behavior for another.


-- 
Petr³




More information about the Freeipa-devel mailing list