test fix for Py<2.5
authorStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 14:08:51 +0000 (16:08 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 14:08:51 +0000 (16:08 +0200)
tests/run/typedfieldbug_T303.pyx

index 653fa513a35af322ddf046c05c43464280416d82..6415f1da1ca0634cf601e1c7664c62a9d694825e 100644 (file)
@@ -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":