changeset 2107:42f3329aa144

checks: do not run pyflake on removed file The fileset matches removed files. This confuses pyflakes for good reasons.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 14 Mar 2017 14:19:11 -0700
parents e243e1d9464c
children 206066375dcb
files tests/test-check-pyflakes.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-pyflakes.t	Tue Mar 14 11:26:55 2017 -0700
+++ b/tests/test-check-pyflakes.t	Tue Mar 14 14:19:11 2017 -0700
@@ -7,5 +7,5 @@
 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  
+  $ hg locate 'set:(**.py or grep("^!#.*python")) - removed()' 2>/dev/null \
+  > | xargs pyflakes 2>/dev/null