From: Stefan Behnel Date: Thu, 29 Apr 2010 06:48:19 +0000 (+0200) Subject: test fix after extending dead code removal X-Git-Tag: 0.13.beta0~125 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c2157cb434546538178f5b774c1c5fadc8b78b13;p=cython.git test fix after extending dead code removal --- diff --git a/tests/errors/return_outside_function_T135.pyx b/tests/errors/return_outside_function_T135.pyx index ba993ac7..82778ea2 100644 --- a/tests/errors/return_outside_function_T135.pyx +++ b/tests/errors/return_outside_function_T135.pyx @@ -1,4 +1,7 @@ +def _runtime_True(): + return True + return 'bar' class A: @@ -19,20 +22,20 @@ for i in (1,2): while True: return None -if True: +if _runtime_True(): return None else: return None _ERRORS = u''' - 2:0: Return not inside a function body - 5:4: Return not inside a function body + 5:0: Return not inside a function body 8:4: Return not inside a function body -10:5: Return not inside a function body +11:4: Return not inside a function body 13:5: Return not inside a function body -17:4: Return not inside a function body +16:5: Return not inside a function body 20:4: Return not inside a function body 23:4: Return not inside a function body -25:4: Return not inside a function body +26:4: Return not inside a function body +28:4: Return not inside a function body '''