From: Vitja Makarov Date: Wed, 13 Apr 2011 15:03:42 +0000 (+0400) Subject: Add simple test for cdef override warning X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=457f38f98c6a67c6ee87cab9e2e3094f7655da35;p=cython.git Add simple test for cdef override warning --- diff --git a/tests/errors/w_cdef_override.pyx b/tests/errors/w_cdef_override.pyx new file mode 100644 index 00000000..e3e51569 --- /dev/null +++ b/tests/errors/w_cdef_override.pyx @@ -0,0 +1,13 @@ +# mode: error +# tags: werror + +cdef foo(): + pass + +def foo(): + pass + +_ERRORS = u""" +7:0: 'foo' redeclared +7:0: Overriding cdef method with def method. +"""