[PATCH 4 of 6] test: add pyflakes checking for unable to detect undefined names

timeless timeless at gmail.com
Sun May 1 14:16:36 CDT 2011


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1304264176 -7200
# Node ID 481b9a5c3bc45c6c14173f59027a0fca26b58537
# Parent  11b2e498bd0f79755b71648261e17f9ce5a0214d
test: add pyflakes checking for unable to detect undefined names

diff --git a/tests/filterpyflakes.py b/tests/filterpyflakes.py
--- a/tests/filterpyflakes.py
+++ b/tests/filterpyflakes.py
@@ -21,6 +21,7 @@ for line in sys.stdin:
     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
diff --git a/tests/test-check-pyflakes.t b/tests/test-check-pyflakes.t
--- a/tests/test-check-pyflakes.t
+++ b/tests/test-check-pyflakes.t
@@ -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)
   
 


More information about the Mercurial-devel mailing list