diff tests/test-check-flake8.t @ 5466:c2aa46a1f47c mercurial-4.8

test-compat: merge mercurial-4.9 into mercurial-4.8
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 31 Jul 2020 19:12:44 +0800
parents 398c7031177a
children 39bc93749027
line wrap: on
line diff
--- a/tests/test-check-flake8.t	Fri May 08 20:36:32 2020 +0800
+++ b/tests/test-check-flake8.t	Fri Jul 31 19:12:44 2020 +0800
@@ -1,12 +1,4 @@
-#require test-repo
-
-  $ checkflake8() {
-  >   if ! (which flake8 > /dev/null); then
-  >     echo skipped: missing tool: flake8;
-  >     exit 80;
-  >   fi;
-  > };
-  $ checkflake8
+#require test-repo flake8
 
 Copied from Mercurial core (60ee2593a270)
 
@@ -17,4 +9,4 @@
   $ hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' \
   > -X hgext3rd/evolve/thirdparty \
   > 2>/dev/null \
-  > | xargs -0 flake8
+  > | xargs -0 "$PYTHON" -m flake8