# HG changeset patch # User Bryan O'Sullivan # Date 1450916540 28800 # Node ID 0d0f4070f6d7cee9bb86b7f3ac2e81a719183b81 # Parent 88b32dcc25b63d1c988d79010dd641342c63dfb5 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). diff -r 88b32dcc25b6 -r 0d0f4070f6d7 tests/test-demandimport.py --- a/tests/test-demandimport.py Wed Dec 23 16:22:20 2015 -0800 +++ b/tests/test-demandimport.py Wed Dec 23 16:22:20 2015 -0800 @@ -34,6 +34,11 @@ print "util =", f(util) print "util.system =", f(util.system) +from mercurial import hgweb +print "hgweb =", f(hgweb) +print "hgweb_mod =", f(hgweb.hgweb_mod) +print "hgweb =", f(hgweb) + import re as fred print "fred =", f(fred) diff -r 88b32dcc25b6 -r 0d0f4070f6d7 tests/test-demandimport.py.out --- a/tests/test-demandimport.py.out Wed Dec 23 16:22:20 2015 -0800 +++ b/tests/test-demandimport.py.out Wed Dec 23 16:22:20 2015 -0800 @@ -5,6 +5,9 @@ util.system = util = util.system = +hgweb = +hgweb_mod = +hgweb = fred = re = fred =