Mercurial > hg > mercurial-crew
changeset 28138:28c1aa12f5de
test-extension: do not depend on demandimport (issue5012)
When demandimport is disabled, the test will fail because extroot/foo.py uses
import outside PYTHONPATH. This is bad since we have a PyPy migration plan and
it does not support demandimport. Fix by setting PYTHONPATH.
author | Jun Wu <quark@fb.com> |
---|---|
date | Fri, 18 Dec 2015 09:47:21 +0000 |
parents | fe376159a58d |
children | ac549d7fbc2b |
files | tests/test-extension.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-extension.t +++ b/tests/test-extension.t @@ -206,7 +206,7 @@ > from extroot.bar import s > buf.append('from extroot.bar import s: %s' % s) > EOF - $ hg --config extensions.extroot=$TESTTMP/extroot root + $ (PYTHONPATH=${PYTHONPATH}${PATHSEP}${TESTTMP}; hg --config extensions.extroot=$TESTTMP/extroot root) (extroot) from extroot.bar import *: this is extroot.bar (extroot) import extroot.sub1.baz: this is extroot.sub1.baz (extroot) import extroot: this is extroot.__init__