tests/test-check-pyflakes.t
author Yuya Nishihara <yuya@tcha.org>
Sun, 17 Apr 2016 13:06:44 +0900
changeset 29074 e7c679738503
parent 27285 aef5b606d3ee
child 29138 a29f071751df
permissions -rw-r--r--
revset: define _parsealias() in _aliasrules class It's short. It doesn't make sense to define _parsealias() outside of the class.

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