view tests/test-check-pyflakes.t @ 27777:47ac135113ec

run-tests: use a context manager for file I/O in TextTestRunner
author Bryan O'Sullivan <bryano@fb.com>
date Tue, 12 Jan 2016 14:49:10 -0800
parents aef5b606d3ee
children a29f071751df
line wrap: on
line source

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