tests/test-check-pyflakes.t
author Yuya Nishihara <yuya@tcha.org>
Sun, 27 Dec 2015 19:58:11 +0900
changeset 28069 b2d24c2898f9
parent 27285 aef5b606d3ee
child 29138 a29f071751df
permissions -rw-r--r--
encoding: backport paranoid escaping from templatefilters.jsonescape() This was introduced by 55c763926a28. It is required to embed JSON data in HTML page. Convince yourself here: http://escape.alf.nu/1

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