comparison tests/test-check-module-imports.t @ 28844:99a2bdad0fda

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.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Apr 2016 19:38:57 +0900
parents f3fb24e36d61
children 531dea16f4f7
comparison
equal deleted inserted replaced
28843:2c7e6f363138 28844:99a2bdad0fda
139 doesn't overlap with a stdlib module name. There are also some cycles 139 doesn't overlap with a stdlib module name. There are also some cycles
140 here that we should still endeavor to fix, and some cycles will be 140 here that we should still endeavor to fix, and some cycles will be
141 hidden by deduplication algorithm in the cycle detector, so fixing 141 hidden by deduplication algorithm in the cycle detector, so fixing
142 these may expose other cycles. 142 these may expose other cycles.
143 143
144 $ hg locate 'mercurial/**.py' 'hgext/**.py' | sed 's-\\-/-g' | python "$import_checker" - 144 Known-bad files are excluded by -X as some of them would produce unstable
145 outputs, which should be fixed later.
146
147 $ hg locate 'mercurial/**.py' 'hgext/**.py' 'tests/**.py' \
148 > -X tests/test-hgweb-auth.py \
149 > -X tests/hypothesishelpers.py \
150 > -X tests/test-ctxmanager.py \
151 > -X tests/test-lock.py \
152 > -X tests/test-verify-repo-operations.py \
153 > | sed 's-\\-/-g' | python "$import_checker" -
145 Import cycle: hgext.largefiles.basestore -> hgext.largefiles.localstore -> hgext.largefiles.basestore 154 Import cycle: hgext.largefiles.basestore -> hgext.largefiles.localstore -> hgext.largefiles.basestore
146 [1] 155 [1]