filterpyflakes: whitelist listcomp aliasing checking
The test change is because of how filterpyflakes is organized - a line
number changed.
--- 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'