From 9d84198a644bf165978e65cb89bca69f7bc2a948 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <scoder@users.berlios.de>
Date: Sat, 22 Aug 2009 16:50:28 +0200
Subject: [PATCH] test fix for Py 3.1.1

---
 tests/run/bufaccess.pyx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/run/bufaccess.pyx b/tests/run/bufaccess.pyx
index 1a99d337b..8bd0629ed 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):
-- 
2.30.9