[py-svn] r34577 - py/dist/py/test

fijal at codespeak.net fijal at codespeak.net
Mon Nov 13 19:34:34 CET 2006


Author: fijal
Date: Mon Nov 13 19:34:32 2006
New Revision: 34577

Modified:
   py/dist/py/test/collect.py
Log:
Add generic __ne__.


Modified: py/dist/py/test/collect.py
==============================================================================
--- py/dist/py/test/collect.py	(original)
+++ py/dist/py/test/collect.py	Mon Nov 13 19:34:32 2006
@@ -101,6 +101,9 @@
             return self.name == other.name and self.parent == other.parent 
         except AttributeError: 
             return False 
+    
+    def __ne__(self, other):
+        return not self == other
 
     def __cmp__(self, other): 
         s1 = self.getsortvalue()



More information about the pytest-commit mailing list