# HG changeset patch # User timeless # Date 1304263661 -7200 # Node ID b452abffcb1557153fe28edf50dc86da40e1d399 # Parent bab267e7fc1a3bf972b8c7f329fe199900f0bb94 tests: add pyflakes checking for assigned to but never used diff -r bab267e7fc1a -r b452abffcb15 tests/filterpyflakes.py --- 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)