[PATCH 3 of 3 RFC] current failings for "undefined name"

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


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1304276834 -7200
# Node ID 70f98098faeef0e71c3163c518138641c05af416
# Parent  d4ae94b08329cba945c387014583238217765807
current failings for "undefined name"

diff --git a/tests/filterpyflakes.py b/tests/filterpyflakes.py
--- a/tests/filterpyflakes.py
+++ b/tests/filterpyflakes.py
@@ -24,6 +24,7 @@ for line in sys.stdin:
             r"unable to detect undefined names",
             r"redefinition of function",
             r"redefinition of unused",
+            r"undefined name",
            ]
     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
@@ -46,5 +46,8 @@
   mercurial/context.py:*: redefinition of unused 'stat' from line * (glob)
   hgext/convert/subversion.py:*: redefinition of unused 'svn' from line * (glob)
   mercurial/keepalive.py:*: redefinition of unused 'time' from line * (glob)
+  mercurial/py3kcompat.py:*: undefined name 'bytes' (glob)
+  mercurial/py3kcompat.py:*: undefined name 'bytes' (glob)
+  mercurial/py3kcompat.py:*: undefined name 'bytes' (glob)
   
 


More information about the Mercurial-devel mailing list