sapling/scripts
Jun Wu 83c88e7a24 modcheck: check if external modules are imported
Summary:
When testing code in this repo, it's an easy mistake to import a module of a
same name installed in the system or specified by `PYTHONPATH`. This diff
adds a test module to detect that. It's included in `unit.py` so `arc unit`
will be able to find such issues

It will be more effective if all our extensions are moved to hgext3rd.

Test Plan:
Append a blank line to every `.t` files, and run `unit.py` with `hg-dev`
environment, and make sure nothing got reported.

Reviewers: durham, #mercurial, mitrandir

Reviewed By: mitrandir

Subscribers: mitrandir, medson, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D5274454

Signature: t1:5274454:1497976474:1b25881f022e148b89829ed3f4d6a79437f2533f
2017-06-20 13:40:53 -07:00
..
hg-new-workdir test-check: backport test-check-execute from core hg 2016-10-18 17:58:45 +01:00
lint.py scripts: unify spwaning run-test logic 2016-10-28 13:58:48 +01:00
scm-prompt.sh scm-prompt: fix _dotfiles_scm_info 2017-04-25 10:56:35 -07:00
traceprof.py smartlog: add a simple ancestor cache 2017-05-26 09:03:58 -07:00
unit.py modcheck: check if external modules are imported 2017-06-20 13:40:53 -07:00
utils.py unittests: drop special casing of lz4revlog extension 2017-01-19 12:58:38 -08:00
with-hg-dev arc: source hg-dev automatically 2017-04-05 13:17:03 -07:00