tests/test-check-pyflakes.t
author Yuya Nishihara <yuya@tcha.org>
Sun, 14 Feb 2016 12:42:25 +0900
changeset 28343 a6c2310b3827
parent 27285 aef5b606d3ee
child 29138 a29f071751df
permissions -rw-r--r--
templater: factor out function that evaluates argument as integer We have more bare int()s that may raise ValueError or TypeError. This function will be used to fix them.

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