tests/test-check-pyflakes.t
author Anton Shestakov <av6@dwimlabs.net>
Mon, 25 Jul 2016 12:37:58 +0800
branchstable
changeset 29627 1811a33c732f
parent 29584 06587edd1233
child 30404 046a7e828ea6
permissions -rw-r--r--
monoblue: make annotate popup use theme colors

#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'