From c2157cb434546538178f5b774c1c5fadc8b78b13 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 29 Apr 2010 08:48:19 +0200 Subject: [PATCH] test fix after extending dead code removal --- tests/errors/return_outside_function_T135.pyx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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 ''' -- 2.26.2