Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be70002

Browse files
Fixed typo in pickle tests.
1 parent cfc2a1f commit be70002

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/pickletester.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,7 +2448,7 @@ class REX_six(object):
24482448
def __init__(self, items=None):
24492449
self.items = items if items is not None else []
24502450
def __eq__(self, other):
2451-
return type(self) is type(other) and self.items == self.items
2451+
return type(self) is type(other) and self.items == other.items
24522452
def append(self, item):
24532453
self.items.append(item)
24542454
def __reduce__(self):
@@ -2461,7 +2461,7 @@ class REX_seven(object):
24612461
def __init__(self, table=None):
24622462
self.table = table if table is not None else {}
24632463
def __eq__(self, other):
2464-
return type(self) is type(other) and self.table == self.table
2464+
return type(self) is type(other) and self.table == other.table
24652465
def __setitem__(self, key, value):
24662466
self.table[key] = value
24672467
def __reduce__(self):

0 commit comments

Comments
 (0)