##// END OF EJS Templates
tests: actually restore the original environment before running syshg...
tests: actually restore the original environment before running syshg Since os.environ may be overridden in run-tests.py, several important variables such as PATH weren't restored. I don't like the idea of using the system hg *by default* because the executable and the configs are out of our control. But I don't mind as long as the tests pass.

File last commit:

r33116:6c113a7d default
r33198:cf826b9e default
Show More
test-check-pyflakes.t
15 lines | 506 B | 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"
Thomas Arendsen Hein
tests: make tests work if directory contains special characters...
r16350 $ cd "`dirname "$TESTDIR"`"
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
Adam Simpkins
tests: use the system hg for examining the local repository...
r33116 $ syshg locate 'set:**.py or grep("^#!.*python")' \
> -X hgext/fsmonitor/pywatchman \
Augie Fackler
tests: exclude python-zstandard from pyflakes analysis
r30894 > -X mercurial/pycompat.py -X contrib/python-zstandard \
Pulkit Goyal
pycompat: make pycompat demandimport friendly...
r29584 > 2>/dev/null \
Simon Heimberg
tests: run pyflakes on files from manifest which could be python files...
r19377 > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
Yuya Nishihara
filterpyflakes: allow reexporting pure symbols from cffi modules...
r32510 tests/filterpyflakes.py:41: undefined name 'undefinedname'
Matt Mackall
tests: fix pyflakes test whitespace breakage
r22053