diff --git a/test/sd-script.py b/test/sd-script.py index 7662b12ab80..51ebf70c39e 100644 --- a/test/sd-script.py +++ b/test/sd-script.py @@ -100,6 +100,12 @@ class SD(object): def __cmp__(self, other): return cmp(self._num, other._num) + def __eq__(self, other): + return self.__cmp__(other) == 0 + + def __ne__(self, other): + return not self.__eq__(other) + def __hash__(self): return hash(self._num)