tests/test-check-pyflakes.t
author Kostia Balytskyi <ikostia@fb.com>
Mon, 13 Jun 2016 22:38:54 +0100
changeset 29359 d2168849539d
parent 29232 3dad34e9d134
child 29584 06587edd1233
permissions -rw-r--r--
rebase: move local variable 'target' to the RR class

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