tests/test-check-pyflakes.t
author Mads Kiilerich <madski@unity3d.com>
Sun, 28 Sep 2014 16:57:06 +0200
changeset 22632 db15bb2d6323
parent 22198 77142de48ae4
child 27285 aef5b606d3ee
permissions -rw-r--r--
util: move _hgexecutable a few lines, closer to where it is used

#require test-repo pyflakes

  $ 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")' 2>/dev/null \
  > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
  tests/filterpyflakes.py:58: undefined name 'undefinedname'