[Python-checkins] cpython (merge 3.5 -> default): Fixed typo in pickle tests.

serhiy.storchaka python-checkins at python.org
Fri Mar 4 02:40:23 EST 2016


https://hg.python.org/cpython/rev/c0a2c9bc0ad9
changeset:   100412:c0a2c9bc0ad9
parent:      100410:9532a8815a9c
parent:      100411:57d6b257cf55
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri Mar 04 09:40:03 2016 +0200
summary:
  Fixed typo in pickle tests.

files:
  Lib/test/pickletester.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -2446,7 +2446,7 @@
     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):
@@ -2459,7 +2459,7 @@
     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):

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list