##// END OF EJS Templates
tests: replace `hg id --debug -i` command substitution with non-debug command...
tests: replace `hg id --debug -i` command substitution with non-debug command The censor and convert tests were failing on Windows because the `--debug` flag also prints debug messages, and at least some of these were outputting: skip updating dirstate: identity mismatch ${node} Obviously that causes cascading problems. The other tests were OK, but it's better to use a non debug command for stability.

File last commit:

r50178:44b26349 default
r52837:2eeca9a8 default
Show More
test-check-pyflakes.t
32 lines | 1.3 KiB | text/troff | Tads3Lexer
/ tests / test-check-pyflakes.t
timeless
tests: mark test-check-pyflakes.t as requiring hg1.0+...
r29138 #require test-repo pyflakes hg10
Matt Mackall
tests: add repository check for pyflakes test...
r21208
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
Simon Heimberg
tests: run pyflakes on files from manifest which could be python files...
r19377
run pyflakes on all tracked files ending in .py or without a file ending
(skipping binary file random-seed)
Matt Mackall
tests: add repository check for pyflakes test...
r21208
Augie Fackler
filterpyflakes: move self-test into test file...
r33367 $ cat > test.py <<EOF
> print(undefinedname)
> EOF
Matt Harbison
tests: ensure `$PYTHON` is quoted for Windows...
r47858 $ "$PYTHON" -m pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py"
av6
tests: adjust to the new format in pyflakes output...
r45486 test.py:1:* undefined name 'undefinedname' (glob)
Augie Fackler
filterpyflakes: move self-test into test file...
r33367
Jun Wu
test-check-pyflakes: do not leave test.py in the repo...
r33418 $ cd "`dirname "$TESTDIR"`"
Augie Fackler
filterpyflakes: move self-test into test file...
r33367
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg locate 'set:**.py or grep("^#!.*python")' \
Adam Simpkins
tests: use the system hg for examining the local repository...
r33116 > -X hgext/fsmonitor/pywatchman \
Matt Harbison
tests: stop excluding the pycompat module from pyflakes...
r49854 > -X contrib/python-zstandard \
av6
tests: skip pyflakes for mercurial/thirdparty/...
r45484 > -X mercurial/thirdparty \
Pulkit Goyal
pycompat: make pycompat demandimport friendly...
r29584 > 2>/dev/null \
Matt Harbison
tests: ensure `$PYTHON` is quoted for Windows...
r47858 > | xargs "$PYTHON" -m pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
av6
tests: adjust to the new format in pyflakes output...
r45486 contrib/perf.py:*:* undefined name 'xrange' (glob) (?)
Matt Harbison
tests: stop excluding the pycompat module from pyflakes...
r49854 mercurial/pycompat.py:*:* 'codecs' imported but unused (glob)
mercurial/pycompat.py:*:* 'concurrent.futures' imported but unused (glob)
mercurial/pycompat.py:*:* 'http.client as httplib' imported but unused (glob)
mercurial/pycompat.py:*:* 'http.cookiejar as cookielib' imported but unused (glob)
mercurial/pycompat.py:*:* 'io' imported but unused (glob)
mercurial/pycompat.py:*:* 'queue' imported but unused (glob)
mercurial/pycompat.py:*:* 'socketserver' imported but unused (glob)
mercurial/pycompat.py:*:* 'xmlrpc.client as xmlrpclib' imported but unused (glob)
Matt Harbison
util: restore the util.pickle symbol...
r49850 mercurial/util.py:*:* 'pickle' imported but unused (glob)
Matt Mackall
tests: fix pyflakes test whitespace breakage
r22053