[PATCH 8 of 8] tests: enable import checker for all **.py files

Yuya Nishihara yuya at tcha.org
Sat May 14 03:33:53 EDT 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1463203003 -32400
#      Sat May 14 14:16:43 2016 +0900
# Node ID e09aa5efd8b2234b15b6a4fd9aa606ae5bb5b582
# Parent  4bbd966a9ebc63eedbc0c576cab9e8f2e851c8c8
tests: enable import checker for all **.py files

Several known-bad files are excluded as they couldn't be trivially fixed.
That's the same as 99a2bdad0fda.

diff --git a/tests/test-check-module-imports.t b/tests/test-check-module-imports.t
--- a/tests/test-check-module-imports.t
+++ b/tests/test-check-module-imports.t
@@ -155,8 +155,12 @@ these may expose other cycles.
 Known-bad files are excluded by -X as some of them would produce unstable
 outputs, which should be fixed later.
 
-  $ hg locate 'mercurial/**.py' 'hgext/**.py' 'tests/**.py' \
+  $ hg locate '**.py' \
   > 'tests/**.t' \
+  > -X contrib/debugshell.py \
+  > -X contrib/win32/hgwebdir_wsgi.py \
+  > -X doc/gendoc.py \
+  > -X doc/hgmanpage.py \
   > -X tests/test-hgweb-auth.py \
   > -X tests/hypothesishelpers.py \
   > -X tests/test-ctxmanager.py \


More information about the Mercurial-devel mailing list