From b48f9126c0202accb91b31945a27af040c9609d4 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 17 Jul 2010 16:08:51 +0200 Subject: [PATCH] test fix for Py<2.5 --- tests/run/typedfieldbug_T303.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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": -- 2.26.2