summaryrefslogtreecommitdiffstats
path: root/Lib/test/_mock_backport.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/_mock_backport.py')
-rw-r--r--Lib/test/_mock_backport.py5
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 = ''