We shouldn't rely on a particular ordering for iteration over sets or dicts, either in the code or in tests. Can be tested with PYTHONHASHSEED=random or the -R command line argument.
This will also help with the port to python 3, since that has randomized hashing by default. |