test-check-pyflakes.t
27 lines
| 998 B
| text/troff
|
Tads3Lexer
/ tests / test-check-pyflakes.t
timeless
|
r29138 | #require test-repo pyflakes hg10 | ||
Matt Mackall
|
r21208 | |||
timeless
|
r29219 | $ . "$TESTDIR/helpers-testrepo.sh" | ||
Simon Heimberg
|
r19377 | |||
run pyflakes on all tracked files ending in .py or without a file ending | ||||
(skipping binary file random-seed) | ||||
Matt Mackall
|
r21208 | |||
Augie Fackler
|
r33367 | $ cat > test.py <<EOF | ||
> print(undefinedname) | ||||
> EOF | ||||
Matt Harbison
|
r47858 | $ "$PYTHON" -m pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||
r45486 | test.py:1:* undefined name 'undefinedname' (glob) | |||
Augie Fackler
|
r33367 | |||
Jun Wu
|
r33418 | $ cd "`dirname "$TESTDIR"`" | ||
Augie Fackler
|
r33367 | |||
Yuya Nishihara
|
r33199 | $ testrepohg locate 'set:**.py or grep("^#!.*python")' \ | ||
Adam Simpkins
|
r33116 | > -X hgext/fsmonitor/pywatchman \ | ||
Augie Fackler
|
r30894 | > -X mercurial/pycompat.py -X contrib/python-zstandard \ | ||
r45484 | > -X mercurial/thirdparty \ | |||
Pulkit Goyal
|
r29584 | > 2>/dev/null \ | ||
Matt Harbison
|
r47858 | > | xargs "$PYTHON" -m pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py" | ||
r45486 | contrib/perf.py:*:* undefined name 'xrange' (glob) (?) | |||
mercurial/hgweb/server.py:*:* undefined name 'reload' (glob) (?) | ||||
mercurial/util.py:*:* undefined name 'file' (glob) (?) | ||||
mercurial/encoding.py:*:* undefined name 'localstr' (glob) (?) | ||||
Matt Harbison
|
r47983 | tests/run-tests.py:*:* undefined name 'PermissionError' (glob) (?) | ||
Matt Mackall
|
r22053 | |||