test fix after extending dead code removal
authorStefan Behnel <scoder@users.berlios.de>
Thu, 29 Apr 2010 06:48:19 +0000 (08:48 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 29 Apr 2010 06:48:19 +0000 (08:48 +0200)
tests/errors/return_outside_function_T135.pyx

index ba993ac788411d6839eea4b9e292fb162412f7b8..82778ea2ebe1ed3718d10d13fc30817a31c81797 100644 (file)
@@ -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
 '''