tests/test-check-pyflakes.t
author Yuya Nishihara <yuya@tcha.org>
Sun, 13 Dec 2015 22:02:32 +0900
changeset 27726 7e9dc8bbebf6
parent 27285 aef5b606d3ee
child 29138 a29f071751df
permissions -rw-r--r--
paths: use single loop for both search=None|pattern cases This will help porting to the formatter API. This patch adds test for empty pathitems to make sure "hg paths" never say "not found!".

#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:61: undefined name 'undefinedname'