tests/filterpyflakes.py
changeset 14175 b452abffcb15
parent 14173 419539ea79cb
child 14176 dea68bddfb87
--- a/tests/filterpyflakes.py	Sun May 01 17:20:40 2011 +0200
+++ b/tests/filterpyflakes.py	Sun May 01 17:27:41 2011 +0200
@@ -18,7 +18,11 @@
 lines = []
 for line in sys.stdin:
     # We whitelist tests
-    if not re.search("imported but unused", line):
+    pats = [
+            r"imported but unused",
+            r"local variable '.*' is assigned to but never used",
+           ]
+    if not re.search('|'.join(pats), line):
         continue
     lines.append(line)