Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed May 27, 2017
1 parent f39c932 commit 7814ec2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions maya/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,23 @@ def __eq__(self, maya_dt):

@validate_class_type_arguments('!=')
def __ne__(self, maya_dt):
return self._epoch != maya_dt._epoch
return int(self._epoch) != int(maya_dt._epoch)

@validate_class_type_arguments('<')
def __lt__(self, maya_dt):
return self._epoch < maya_dt._epoch
return int(self._epoch) < int(maya_dt._epoch)

@validate_class_type_arguments('<=')
def __le__(self, maya_dt):
return self._epoch <= maya_dt._epoch
return int(self._epoch) <= int(maya_dt._epoch)

@validate_class_type_arguments('>')
def __gt__(self, maya_dt):
return self._epoch > maya_dt._epoch
return int(self._epoch) > int(maya_dt._epoch)

@validate_class_type_arguments('>=')
def __ge__(self, maya_dt):
return self._epoch >= maya_dt._epoch
return int(self._epoch) >= int(maya_dt._epoch)

def __hash__(self):
return hash(int(self.epoch))
Expand Down Expand Up @@ -244,7 +244,7 @@ def microsecond(self):

@property
def epoch(self):
return self._epoch
return int(self._epoch)

# Human Slang Extras
# ------------------
Expand Down

0 comments on commit 7814ec2

Please sign in to comment.