From 4d676ccfe3287c4378dc8ba7b990c6178894bb10 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 2 Oct 2010 23:49:58 -0700 Subject: [PATCH] Test for bad buffer types. --- tests/errors/e_bufaccess.pyx | 2 ++ 1 file changed, 2 insertions(+) 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. #""" -- 2.26.2