From: Robert Bradshaw Date: Thu, 15 Oct 2009 19:49:20 +0000 (-0700) Subject: autodict richcmp test X-Git-Tag: 0.13.beta0~2^2~121^2~39 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=78642940cf4dd2022652d4f467e334085e5e8dcd;p=cython.git autodict richcmp test --- diff --git a/tests/run/autotestdict.pyx b/tests/run/autotestdict.pyx index 8b2d824d..2cd8d17e 100644 --- a/tests/run/autotestdict.pyx +++ b/tests/run/autotestdict.pyx @@ -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 + """ +