From: Donald Stufft Date: Tue, 11 Nov 2014 17:32:57 +0000 (-0500) Subject: Define a __hash__ to quiet down a -3 warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f44b9c4ddc68d00e22969477e98b8d2948507b92;p=python Define a __hash__ to quiet down a -3 warning --- diff --git a/Lib/test/_mock_backport.py b/Lib/test/_mock_backport.py index d33edccf02..d3948310bb 100644 --- a/Lib/test/_mock_backport.py +++ b/Lib/test/_mock_backport.py @@ -1873,6 +1873,8 @@ class MagicProxy(object): class _ANY(object): "A helper object that compares equal to everything." + __hash__ = object.__hash__ + def __eq__(self, other): return True @@ -1923,6 +1925,9 @@ class _Call(tuple): If the _Call has no name then it will match any name. """ + + __hash__ = object.__hash__ + def __new__(cls, value=(), name=None, parent=None, two=False, from_kall=True): name = ''