tests/test-check-pyflakes.t
author Pulkit Goyal <7895pulkit@gmail.com>
Sun, 13 Mar 2016 01:08:39 +0530
changeset 28509 9e3ecb6f4995
parent 27285 aef5b606d3ee
child 29138 a29f071751df
permissions -rw-r--r--
check-code: use absolute_import and print_function

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