From: Robert Bradshaw Date: Sun, 3 Oct 2010 06:49:58 +0000 (-0700) Subject: Test for bad buffer types. X-Git-Tag: 0.14.alpha0~304 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4d676ccfe3287c4378dc8ba7b990c6178894bb10;p=cython.git Test for bad buffer types. --- diff --git a/tests/errors/e_bufaccess.pyx b/tests/errors/e_bufaccess.pyx index 0281b67b..e6f9e39c 100644 --- a/tests/errors/e_bufaccess.pyx +++ b/tests/errors/e_bufaccess.pyx @@ -10,6 +10,7 @@ def f(): cdef object[int,2,3,4,5,6] buf4 cdef object[int, 2, 'foo'] buf5 cdef object[int, 2, well] buf6 + cdef object[x, 1] buf0 _ERRORS = u""" 1:17: Buffer types only allowed as function local variables @@ -23,5 +24,6 @@ _ERRORS = u""" #10:15: Too many buffer options #11:24: Only allowed buffer modes are "full" or "strided" (as a compile-time string) #12:28: Only allowed buffer modes are "full" or "strided" (as a compile-time string) +#13:17: Invalid type. #"""