changeset 5336:2895b026ba88

tests: modernize test-check-pyflakes.t Using newer hg files instead of hg locate, using null bytes as separators, excluding thirdparty dir. Copied from test-check-flake8.t.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 24 May 2020 13:02:48 +0800
parents e5406605d8f5
children f354de498737
files tests/test-check-pyflakes.t
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-pyflakes.t	Sat May 23 11:43:26 2020 +0800
+++ b/tests/test-check-pyflakes.t	Sun May 24 13:02:48 2020 +0800
@@ -7,5 +7,7 @@
 run pyflakes on all tracked files ending in .py or without a file ending
 (skipping binary file random-seed)
 
-  $ hg locate -I 'set:(**.py or grep("^#!.*python")) - removed()' 2>/dev/null \
-  > | xargs pyflakes 2>/dev/null
+  $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \
+  > -X hgext3rd/evolve/thirdparty \
+  > 2>/dev/null \
+  > | xargs -0 pyflakes 2>/dev/null