Skip to content

Commit

Permalink
:fix: python3 UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
b3j0f committed Nov 8, 2015
1 parent 49e1cca commit f4231d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions b3j0f/utils/test/iterable.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ def __getslice__(self, lower, upper):

return self.value[lower: upper]

def __cmp__(self, other):
def __eq__(self, other):

valuetocmp = other.value if isinstance(other, Test) else other

return len(self.value).__cmp__(len(valuetocmp))
return self.value == valuetocmp

self._assertvalue(Test)

Expand Down

0 comments on commit f4231d2

Please sign in to comment.