diff options
author | Donald Stufft <donald@stufft.io> | 2014-11-11 17:32:57 (GMT) |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2014-11-11 17:32:57 (GMT) |
commit | f44b9c4ddc68d00e22969477e98b8d2948507b92 (patch) | |
tree | 6138093c9df44c8964873896bf90aa6810f18d25 | |
parent | 3ecc8dbdcd5448f709c0e1220b0f6c68c21b66dc (diff) | |
download | cpython-f44b9c4ddc68d00e22969477e98b8d2948507b92.zip cpython-f44b9c4ddc68d00e22969477e98b8d2948507b92.tar.gz cpython-f44b9c4ddc68d00e22969477e98b8d2948507b92.tar.bz2 |
Define a __hash__ to quiet down a -3 warning
-rw-r--r-- | Lib/test/_mock_backport.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/_mock_backport.py b/Lib/test/_mock_backport.py index d33edcc..d394831 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 = '' |