If that's the case then it affects most of the doctests in this module, whether they are checking dicts themselves or lists produced by iterating over dict keys (without sorting them first).