tests/test-check-pyflakes.t
author timeless <timeless@mozdev.org>
Wed, 11 May 2016 04:49:27 +0000
changeset 29219 3c9066ed557c
parent 29138 a29f071751df
child 29232 3dad34e9d134
permissions -rw-r--r--
tests: silence test-repo obsolete warning refactoring test-check-commit.t HGRCPATH bits as helpers-testrepo.sh

#require test-repo pyflakes hg10

  $ . "$TESTDIR/helpers-testrepo.sh"
  $ 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'