changeset 30394:046a7e828ea6

filterpyflakes: whitelist listcomp aliasing checking The test change is because of how filterpyflakes is organized - a line number changed.
author Augie Fackler <augie@google.com>
date Thu, 10 Nov 2016 16:37:18 -0500
parents b667b78099eb
children 10514a92860e
files tests/filterpyflakes.py tests/test-check-pyflakes.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/filterpyflakes.py	Thu Nov 10 16:35:54 2016 -0500
+++ b/tests/filterpyflakes.py	Thu Nov 10 16:37:18 2016 -0500
@@ -36,7 +36,8 @@
             (r"local variable '.*' is assigned to but never used", None),
             (r"unable to detect undefined names", None),
             (r"undefined name '.*'",
-             r"undefined name '(WindowsError|memoryview)'")
+             r"undefined name '(WindowsError|memoryview)'"),
+            ("list comprehension", None),
            ]
 
     for msgtype, (pat, excl) in enumerate(pats):
--- a/tests/test-check-pyflakes.t	Thu Nov 10 16:35:54 2016 -0500
+++ b/tests/test-check-pyflakes.t	Thu Nov 10 16:37:18 2016 -0500
@@ -10,6 +10,6 @@
   > -X mercurial/pycompat.py \
   > 2>/dev/null \
   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
-  tests/filterpyflakes.py:61: undefined name 'undefinedname'
+  tests/filterpyflakes.py:62: undefined name 'undefinedname'