Author: Manuel Jacob <m...@manueljacob.de> Branch: Changeset: r90469:dca7eeaa51de Date: 2017-03-02 11:38 +0100 http://bitbucket.org/pypy/pypy/changeset/dca7eeaa51de/
Log: Make BadEq object hashable. I forgot to do this a few commits ago. diff --git a/pypy/objspace/std/test/test_dictmultiobject.py b/pypy/objspace/std/test/test_dictmultiobject.py --- a/pypy/objspace/std/test/test_dictmultiobject.py +++ b/pypy/objspace/std/test/test_dictmultiobject.py @@ -846,6 +846,8 @@ class BadEq(object): def __eq__(self, other): raise ZeroDivisionError + def __hash__(self): + return 7 k = BadEq() v = BadEq() assert (k, v) in {k: v}.viewitems() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit