Christian Heimes added the comment: Both keys happen to have the same LSB bytes. I have added "print(hash('a') & 7, hash('b') & 7)" to the code and run test tests multiple times:
$ ./python -m test -m test_repr test_functools [1/1] test_functools 3 6 3 6 1 test OK. $ ./python -m test -m test_repr test_functools [1/1] test_functools 2 2 2 2 test test_functools failed -- multiple errors occurred; run in verbose mode for details 1 test failed: test_functools ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19681> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com