[Christian Heimes] > 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.
Best to change the failing tests. For example, _they_ can sort the dict keys if they rely on a fixed order. Sorting in general is a dubious idea because it can be a major expense with no real benefit for most uses. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com