summaryrefslogtreecommitdiffstats
path: root/Lib/test/pickletester.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-25 06:51:38 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-25 06:51:38 (GMT)
commitf8cc2870f16e386476c6a62c4688a7bdd28dbaad (patch)
treed910b8c9e22a7be6b76c3b518ad9aace58a6e4f9 /Lib/test/pickletester.py
parentf10006cdb82a27802ec7c9340e59030712d36f29 (diff)
downloadcpython-f8cc2870f16e386476c6a62c4688a7bdd28dbaad.zip
cpython-f8cc2870f16e386476c6a62c4688a7bdd28dbaad.tar.gz
cpython-f8cc2870f16e386476c6a62c4688a7bdd28dbaad.tar.bz2
Issue #28515: Fixed py3k warnings.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r--Lib/test/pickletester.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 855a9c4..022789d 100644
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -1572,6 +1572,7 @@ class REX_six(object):
self.items = items
def __eq__(self, other):
return type(self) is type(other) and self.items == other.items
+ __hash__ = None
def append(self, item):
self.items.append(item)
def extend(self, items):
@@ -1590,6 +1591,7 @@ class REX_seven(object):
self.table = table
def __eq__(self, other):
return type(self) is type(other) and self.table == other.table
+ __hash__ = None
def __setitem__(self, key, value):
self.table[key] = value
def __reduce__(self):
@@ -1639,6 +1641,7 @@ class SimpleNewObj(int):
raise TypeError("SimpleNewObj.__init__() didn't expect to get called")
def __eq__(self, other):
return int(self) == int(other) and self.__dict__ == other.__dict__
+ __hash__ = None
class ComplexNewObj(SimpleNewObj):
def __getnewargs__(self):