[Python-Dev] flaky tests caused by repr() sort order (original) (raw)

Christian Heimes christian at python.org
Thu Nov 21 17:37:57 CET 2013


Hi,

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.

http://bugs.python.org/issue19681 http://bugs.python.org/issue19664

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.

Christian



More information about the Python-Dev mailing list