From 7814ec2864abb68b0b3e887aa4ce0a17beb87c65 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 27 May 2017 13:04:22 -0400 Subject: [PATCH] fix broken tests --- maya/core.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/maya/core.py b/maya/core.py index fd10d77..431781b 100644 --- a/maya/core.py +++ b/maya/core.py @@ -66,23 +66,23 @@ class MayaDT(object): @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)) @@ -244,7 +244,7 @@ class MayaDT(object): @property def epoch(self): - return self._epoch + return int(self._epoch) # Human Slang Extras # ------------------