Mercurial > hg
comparison tests/test-demandimport.py @ 27535:0d0f4070f6d7
test-demandimport: ensure that relative imports are deferred
This adds a test not just at our local "top level" (the mercurial
package), but also one level deeper (mercurial.hgweb).
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 23 Dec 2015 16:22:20 -0800 |
parents | 2205d00b6d2b |
children | 16390f4cccf0 |
comparison
equal
deleted
inserted
replaced
27534:88b32dcc25b6 | 27535:0d0f4070f6d7 |
---|---|
32 print "util =", f(util) | 32 print "util =", f(util) |
33 print "util.system =", f(util.system) | 33 print "util.system =", f(util.system) |
34 print "util =", f(util) | 34 print "util =", f(util) |
35 print "util.system =", f(util.system) | 35 print "util.system =", f(util.system) |
36 | 36 |
37 from mercurial import hgweb | |
38 print "hgweb =", f(hgweb) | |
39 print "hgweb_mod =", f(hgweb.hgweb_mod) | |
40 print "hgweb =", f(hgweb) | |
41 | |
37 import re as fred | 42 import re as fred |
38 print "fred =", f(fred) | 43 print "fred =", f(fred) |
39 | 44 |
40 import sys as re | 45 import sys as re |
41 print "re =", f(re) | 46 print "re =", f(re) |