From: Stefan Behnel Date: Sat, 22 Aug 2009 14:50:28 +0000 (+0200) Subject: test fix for Py 3.1.1 X-Git-Tag: 0.12.alpha0~219 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9d84198a644bf165978e65cb89bca69f7bc2a948;p=cython.git test fix for Py 3.1.1 --- diff --git a/tests/run/bufaccess.pyx b/tests/run/bufaccess.pyx index 1a99d337..8bd0629e 100644 --- a/tests/run/bufaccess.pyx +++ b/tests/run/bufaccess.pyx @@ -18,6 +18,7 @@ from python_ref cimport PyObject __test__ = {} +import sys import re exclude = []#re.compile('object').search] @@ -25,7 +26,11 @@ def testcase(func): for e in exclude: if e(func.__name__): return func - __test__[func.__name__] = func.__doc__ + doctest = func.__doc__ + if sys.version_info >= (3,1,1): + doctest = doctest.replace('does not have the buffer interface', + 'does not support the buffer interface') + __test__[func.__name__] = doctest return func def testcas(a):