Skip to content
Snippets Groups Projects
Commit 0768cda8b579 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

test-pyflakes: detect undefined name error

It should be able to catch the following mistakes at 2606e7f227f6:

    mercurial/exchange.py:590: undefined name 'UnknownPartError'
    mercurial/match.py:346: undefined name 'pat'
    mercurial/win32.py:365: undefined name '_ERROR_NO_MORE_FILES'
    tests/killdaemons.py:46: undefined name 'check'
parent 1ce16c7b7fb4
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
r"imported but unused",
r"local variable '.*' is assigned to but never used",
r"unable to detect undefined names",
r"undefined name '.*'",
]
for msgtype, pat in enumerate(pats):
if re.search(pat, line):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment