[Python-Dev] flaky tests caused by repr() sort order
christian at python.org
Thu Nov 21 17:37:57 CET 2013
the buildbots are flaky because two repr() tests for userdict and
functools.partial fail every now and then. The test cases depend on a
fixed order of keyword arguments the representation of userdict and
partial instances. The improved hash randomization of PEP 456 shows its
power. I haven't seen the issue before because it happens rarely and
mostly on 32 bit platforms.
I'm not sure about the best approach for the issues. Either we need to
change the test case and make it more resilient or the code for repr()
must sort its dict keys.
More information about the Python-Dev