From: Stefan Behnel Date: Sat, 17 Jul 2010 14:08:51 +0000 (+0200) Subject: test fix for Py<2.5 X-Git-Tag: 0.13.beta0~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b48f9126c0202accb91b31945a27af040c9609d4;p=cython.git test fix for Py<2.5 --- diff --git a/tests/run/typedfieldbug_T303.pyx b/tests/run/typedfieldbug_T303.pyx index 653fa513..6415f1da 100644 --- a/tests/run/typedfieldbug_T303.pyx +++ b/tests/run/typedfieldbug_T303.pyx @@ -6,8 +6,8 @@ TypeError: ... """ import sys -if sys.version_info[0:2] >= (2,4): - __doc__ = __doc__.replace(u'TypeError:', u'AttributeError:') +if sys.version_info >= (2,5): + __doc__ = __doc__.replace('TypeError:', 'AttributeError:') cdef extern from "external_defs.h":