From 9fb77985332788c20a27a44be8a9e0dc6c842632 Mon Sep 17 00:00:00 2001
From: Vitja Makarov <vitja.makarov@gmail.com>
Date: Wed, 4 May 2011 10:41:15 +0400
Subject: [PATCH] Add failing testcase

---
 tests/errors/w_uninitialized_exc.pyx | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/errors/w_uninitialized_exc.pyx b/tests/errors/w_uninitialized_exc.pyx
index fb1c8eefa..3e9e98366 100644
--- a/tests/errors/w_uninitialized_exc.pyx
+++ b/tests/errors/w_uninitialized_exc.pyx
@@ -92,6 +92,14 @@ def try_loop(args):
     finally:
         return x
 
+def try_finally(a):
+    try:
+        for i in a:
+            if i > 0:
+                x = 1
+    finally:
+        return x
+
 _ERRORS = """
 12:12: local variable 'e' might be referenced before assignment
 12:15: local variable 'i' might be referenced before assignment
@@ -100,4 +108,5 @@ _ERRORS = """
 69:16: local variable 'x' might be referenced before assignment
 77:14: local variable 'oops' might be referenced before assignment
 93:16: local variable 'x' might be referenced before assignment
+101:16: local variable 'x' might be referenced before assignment
 """
-- 
2.30.9