changeset 14176:dea68bddfb87

test: add pyflakes checking for unable to detect undefined names
author timeless <timeless@mozdev.org>
date Sun, 01 May 2011 17:36:16 +0200
parents b452abffcb15
children fc004d16633f
files tests/filterpyflakes.py tests/test-check-pyflakes.t
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/filterpyflakes.py	Sun May 01 17:27:41 2011 +0200
+++ b/tests/filterpyflakes.py	Sun May 01 17:36:16 2011 +0200
@@ -21,6 +21,7 @@
     pats = [
             r"imported but unused",
             r"local variable '.*' is assigned to but never used",
+            r"unable to detect undefined names",
            ]
     if not re.search('|'.join(pats), line):
         continue
--- a/tests/test-check-pyflakes.t	Sun May 01 17:27:41 2011 +0200
+++ b/tests/test-check-pyflakes.t	Sun May 01 17:36:16 2011 +0200
@@ -7,5 +7,9 @@
   mercurial/commands.py:*: 'mpatch' imported but unused (glob)
   mercurial/commands.py:*: 'osutil' imported but unused (glob)
   mercurial/revlog.py:*: 'short' imported but unused (glob)
+  hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)
+  mercurial/util.py:*: 'from posix import *' used; unable to detect undefined names (glob)
+  mercurial/windows.py:*: 'from win32 import *' used; unable to detect undefined names (glob)
+  mercurial/util.py:*: 'from windows import *' used; unable to detect undefined names (glob)