]> granicus.if.org Git - python/commitdiff
Fixed typo in pickle tests.
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 4 Mar 2016 07:39:47 +0000 (09:39 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 4 Mar 2016 07:39:47 +0000 (09:39 +0200)
Lib/test/pickletester.py

index fba110b14af2ef13e6cfe14f8a767f399f6df732..f252a0a10f3344d97fc67c772e44a1f57e6ab590 100644 (file)
@@ -2448,7 +2448,7 @@ class REX_six(object):
     def __init__(self, items=None):
         self.items = items if items is not None else []
     def __eq__(self, other):
-        return type(self) is type(other) and self.items == self.items
+        return type(self) is type(other) and self.items == other.items
     def append(self, item):
         self.items.append(item)
     def __reduce__(self):
@@ -2461,7 +2461,7 @@ class REX_seven(object):
     def __init__(self, table=None):
         self.table = table if table is not None else {}
     def __eq__(self, other):
-        return type(self) is type(other) and self.table == self.table
+        return type(self) is type(other) and self.table == other.table
     def __setitem__(self, key, value):
         self.table[key] = value
     def __reduce__(self):