From 2b948d06cbe95d3dac12b263e4f156e319f94e63 Mon Sep 17 00:00:00 2001 From: Kurt Smith Date: Mon, 23 Mar 2009 20:23:38 -0500 Subject: [PATCH] Added test case for ticket 135 in tests/bugs. --- tests/bugs/return_outside_function_T135.pyx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/bugs/return_outside_function_T135.pyx diff --git a/tests/bugs/return_outside_function_T135.pyx b/tests/bugs/return_outside_function_T135.pyx new file mode 100644 index 00000000..3e1a416f --- /dev/null +++ b/tests/bugs/return_outside_function_T135.pyx @@ -0,0 +1,12 @@ +return 'bar' +class A: + return None + +cdef class B: + return None + +_ERRORS = u''' +1:0: Return not inside a function body +3:4: Return not inside a function body +6:4: Return not inside a function body +''' -- 2.26.2