##// END OF EJS Templates
test: add pyflakes checking for unable to detect undefined names
timeless -
r14176:dea68bdd default
parent child Browse files
Show More
@@ -21,6 +21,7 b' for line in sys.stdin:'
21 pats = [
21 pats = [
22 r"imported but unused",
22 r"imported but unused",
23 r"local variable '.*' is assigned to but never used",
23 r"local variable '.*' is assigned to but never used",
24 r"unable to detect undefined names",
24 ]
25 ]
25 if not re.search('|'.join(pats), line):
26 if not re.search('|'.join(pats), line):
26 continue
27 continue
@@ -7,5 +7,9 b''
7 mercurial/commands.py:*: 'mpatch' imported but unused (glob)
7 mercurial/commands.py:*: 'mpatch' imported but unused (glob)
8 mercurial/commands.py:*: 'osutil' imported but unused (glob)
8 mercurial/commands.py:*: 'osutil' imported but unused (glob)
9 mercurial/revlog.py:*: 'short' imported but unused (glob)
9 mercurial/revlog.py:*: 'short' imported but unused (glob)
10 hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)
11 mercurial/util.py:*: 'from posix import *' used; unable to detect undefined names (glob)
12 mercurial/windows.py:*: 'from win32 import *' used; unable to detect undefined names (glob)
13 mercurial/util.py:*: 'from windows import *' used; unable to detect undefined names (glob)
10
14
11
15
General Comments 0
You need to be logged in to leave comments. Login now