tests/test-check-pyflakes.t
author Yuya Nishihara <yuya@tcha.org>
Sat, 16 Jul 2016 14:46:31 +0900
changeset 29587 536eec443b4a
parent 29584 06587edd1233
child 30404 046a7e828ea6
permissions -rw-r--r--
commandserver: rename _serveworker() to _runworker() "run" sounds more natural as the function does never listen for new connection.

#require test-repo pyflakes hg10

  $ . "$TESTDIR/helpers-testrepo.sh"
  $ cd "`dirname "$TESTDIR"`"

run pyflakes on all tracked files ending in .py or without a file ending
(skipping binary file random-seed)

  $ hg locate 'set:**.py or grep("^#!.*python")' \
  > -X mercurial/pycompat.py \
  > 2>/dev/null \
  > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
  tests/filterpyflakes.py:61: undefined name 'undefinedname'