[Checkins] SVN: zope.interface/branches/3.6/src/zope/interface/interface.py Work around sporadic x86-64 test failures.

Tres Seaver tseaver at palladion.com
Thu Aug 18 16:22:03 EDT 2011


Log message for revision 122609:
  Work around sporadic x86-64 test failures.

Changed:
  U   zope.interface/branches/3.6/src/zope/interface/interface.py

-=-
Modified: zope.interface/branches/3.6/src/zope/interface/interface.py
===================================================================
--- zope.interface/branches/3.6/src/zope/interface/interface.py	2011-08-18 12:17:45 UTC (rev 122608)
+++ zope.interface/branches/3.6/src/zope/interface/interface.py	2011-08-18 20:22:02 UTC (rev 122609)
@@ -688,6 +688,16 @@
         #print '<', self, other, c < 0, c
         return c < 0
 
+    def __le__(self, other):
+        c = self.__cmp(self, other)
+        #print '<', self, other, c < 0, c
+        return c <= 0
+
+    def __ge__(self, other):
+        c = self.__cmp(self, other)
+        #print '>', self, other, c > 0, c
+        return c >= 0
+
     def __gt__(self, other):
         c = self.__cmp(self, other)
         #print '>', self, other, c > 0, c



More information about the checkins mailing list