filterpyflakes: whitelist listcomp aliasing checking
authorAugie Fackler <augie@google.com>
Thu, 10 Nov 2016 16:37:18 -0500
changeset 30394 046a7e828ea6
parent 30393 b667b78099eb
child 30395 10514a92860e
filterpyflakes: whitelist listcomp aliasing checking The test change is because of how filterpyflakes is organized - a line number changed.
tests/filterpyflakes.py
tests/test-check-pyflakes.t
--- 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'