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-Tag: v2.7.9rc1~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f44b9c4ddc68d00e22969477e98b8d2948507b92;p=thirdparty%2FPython%2Fcpython.git Define a __hash__ to quiet down a -3 warning --- diff --git a/Lib/test/_mock_backport.py b/Lib/test/_mock_backport.py index d33edccf0233..d3948310bbaf 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 = ''