test-check-pyflakes: do not leave test.py in the repo
Differential Revision: https://phab.mercurial-scm.org/D67
--- a/tests/test-check-pyflakes.t Sat Jul 08 13:15:17 2017 +0900
+++ b/tests/test-check-pyflakes.t Wed Jul 12 15:27:56 2017 -0700
@@ -1,7 +1,6 @@
#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)
@@ -12,6 +11,7 @@
$ pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py"
test.py:1: undefined name 'undefinedname'
+ $ cd "`dirname "$TESTDIR"`"
$ testrepohg locate 'set:**.py or grep("^#!.*python")' \
> -X hgext/fsmonitor/pywatchman \