projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd29303
)
test fix for Py 3.1.1
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 22 Aug 2009 14:50:28 +0000
(16:50 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 22 Aug 2009 14:50:28 +0000
(16:50 +0200)
tests/run/bufaccess.pyx
patch
|
blob
|
history
diff --git
a/tests/run/bufaccess.pyx
b/tests/run/bufaccess.pyx
index 1a99d337b5409836d44fc46e9fe3b9290b6aa974..8bd0629ed91331da8205a0c8400b1158359289b5 100644
(file)
--- 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):