tests/test-check-pyflakes.t
author timeless <timeless@mozdev.org>
Fri, 06 May 2016 19:16:16 +0000
changeset 29178 0fb2fddd00a3
parent 29138 a29f071751df
child 29219 3c9066ed557c
permissions -rw-r--r--
tests: test-archive.t use open() instead of file() for py3 compat

#require test-repo pyflakes hg10

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