autodict richcmp test
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 15 Oct 2009 19:49:20 +0000 (12:49 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 15 Oct 2009 19:49:20 +0000 (12:49 -0700)
tests/run/autotestdict.pyx

index 8b2d824d518d44405b8fc9fb5be6ca0553e9653e..2cd8d17e1f852a3875e4e7987750040267e9d052 100644 (file)
@@ -91,5 +91,13 @@ cdef class MyCdefClass:
         False
         """
 
+    def __richcmp__(self, other, int op):
+        """
+        Should not be included, as it can't be looked up with getattr in Py 2
+
+        >>> True
+        False
+        """
+