tests/test-check-pyflakes.t
author Martin von Zweigbergk <martinvonz@google.com>
Wed, 03 Dec 2014 14:03:20 -0800
changeset 23482 208ec8ca7c79
parent 22198 77142de48ae4
child 27285 aef5b606d3ee
permissions -rw-r--r--
merge: make 'keep' message more descriptive Most merge action messages don't describe the action itself, they describe the reason the action was taken. The only exeption is the 'k' action, for which the message is just "keep" and instead there is a code comment folling it that says "remote unchanged". Let's move that comment into the merge action message.

#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:58: undefined name 'undefinedname'