diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-04 07:40:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-04 07:40:03 (GMT) |
commit | 96c058b4de0652d52687bbc9d3bb70f4d7f669e9 (patch) | |
tree | bee3810c37102970ebcd5740538754d5ca46d290 /Lib/test | |
parent | 0f04bc79592f2cea68fd7153b792910bf3527bf5 (diff) | |
parent | be70002866417fec082dbfcf1d4ce97e64eb1e40 (diff) | |
download | cpython-96c058b4de0652d52687bbc9d3bb70f4d7f669e9.zip cpython-96c058b4de0652d52687bbc9d3bb70f4d7f669e9.tar.gz cpython-96c058b4de0652d52687bbc9d3bb70f4d7f669e9.tar.bz2 |
Fixed typo in pickle tests.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/pickletester.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index d38276e..8deb56f 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -2446,7 +2446,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): @@ -2459,7 +2459,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): |