From 457f38f98c6a67c6ee87cab9e2e3094f7655da35 Mon Sep 17 00:00:00 2001 From: Vitja Makarov Date: Wed, 13 Apr 2011 19:03:42 +0400 Subject: [PATCH] Add simple test for cdef override warning --- tests/errors/w_cdef_override.pyx | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/errors/w_cdef_override.pyx 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. +""" -- 2.26.2