tests/test-check-pyflakes.t
author Yuya Nishihara <yuya@tcha.org>
Wed, 31 Aug 2016 23:36:37 +0900
changeset 29891 ca6940515485
parent 29584 06587edd1233
child 30394 046a7e828ea6
permissions -rw-r--r--
test-debugextensions: add dummy extension to make ifcontains() test more solid If testedwith were a string, ifcontains("3.2", testedwith) would match "3.2.1". New test added to cover that.

#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")' \
  > -X mercurial/pycompat.py \
  > 2>/dev/null \
  > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
  tests/filterpyflakes.py:61: undefined name 'undefinedname'