# HG changeset patch # User Yuya Nishihara # Date 1459679937 -32400 # Node ID 99a2bdad0fda4fe16830376ad81c1065a5080cb9 # Parent 2c7e6f363138551b85db37134b0fb0213d59c11a tests: enable import checker for tests/**.py files Several known-bad files are excluded as they couldn't be trivially fixed. In principle, we should fix them first, however, it would have more risk to keep Py3k porting going without the test coverage. Still contrib/**.py aren't covered, which needs another round. diff -r 2c7e6f363138 -r 99a2bdad0fda tests/test-check-module-imports.t --- a/tests/test-check-module-imports.t Tue Apr 05 23:38:00 2016 +0900 +++ b/tests/test-check-module-imports.t Sun Apr 03 19:38:57 2016 +0900 @@ -141,6 +141,15 @@ hidden by deduplication algorithm in the cycle detector, so fixing these may expose other cycles. - $ hg locate 'mercurial/**.py' 'hgext/**.py' | sed 's-\\-/-g' | python "$import_checker" - +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' \ + > -X tests/test-hgweb-auth.py \ + > -X tests/hypothesishelpers.py \ + > -X tests/test-ctxmanager.py \ + > -X tests/test-lock.py \ + > -X tests/test-verify-repo-operations.py \ + > | sed 's-\\-/-g' | python "$import_checker" - Import cycle: hgext.largefiles.basestore -> hgext.largefiles.localstore -> hgext.largefiles.basestore [1]