tests/test-check-pyflakes.t
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 13 May 2017 11:58:08 -0700
changeset 32321 c34532365b38
parent 32317 80e3002cd29e
child 32543 50eaccb8353f
permissions -rw-r--r--
branchmap: remove use of buffer() to support Python 2.6 The use of buffer() was added in 7359157b9e46 to support Python 2.6, which we no longer support.

#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 hgext/fsmonitor/pywatchman \
  > -X mercurial/pycompat.py -X contrib/python-zstandard \
  > 2>/dev/null \
  > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
  tests/filterpyflakes.py:38: undefined name 'undefinedname'