Mercurial > hg
comparison tests/test-extension.t @ 27491: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 | ac27b1b3be85 |
children | 58f8b29c37ff |
comparison
equal
deleted
inserted
replaced
27490:fe376159a58d | 27491:28c1aa12f5de |
---|---|
204 > buf.append('import extroot: %s' % extroot.s) | 204 > buf.append('import extroot: %s' % extroot.s) |
205 > # NOT "not fromlist" and NOT "level != -1" case | 205 > # NOT "not fromlist" and NOT "level != -1" case |
206 > from extroot.bar import s | 206 > from extroot.bar import s |
207 > buf.append('from extroot.bar import s: %s' % s) | 207 > buf.append('from extroot.bar import s: %s' % s) |
208 > EOF | 208 > EOF |
209 $ hg --config extensions.extroot=$TESTTMP/extroot root | 209 $ (PYTHONPATH=${PYTHONPATH}${PATHSEP}${TESTTMP}; hg --config extensions.extroot=$TESTTMP/extroot root) |
210 (extroot) from extroot.bar import *: this is extroot.bar | 210 (extroot) from extroot.bar import *: this is extroot.bar |
211 (extroot) import extroot.sub1.baz: this is extroot.sub1.baz | 211 (extroot) import extroot.sub1.baz: this is extroot.sub1.baz |
212 (extroot) import extroot: this is extroot.__init__ | 212 (extroot) import extroot: this is extroot.__init__ |
213 (extroot) from extroot.bar import s: this is extroot.bar | 213 (extroot) from extroot.bar import s: this is extroot.bar |
214 (extroot) import extroot.bar in func(): this is extroot.bar | 214 (extroot) import extroot.bar in func(): this is extroot.bar |