# HG changeset patch # User Bryan O'Sullivan # Date 2015-12-24 00:22:20 # 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 --git a/tests/test-demandimport.py b/tests/test-demandimport.py --- a/tests/test-demandimport.py +++ b/tests/test-demandimport.py @@ -34,6 +34,11 @@ print "util.system =", f(util.system) 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 --git a/tests/test-demandimport.py.out b/tests/test-demandimport.py.out --- a/tests/test-demandimport.py.out +++ b/tests/test-demandimport.py.out @@ -5,6 +5,9 @@ util = util.system = util = util.system = +hgweb = +hgweb_mod = +hgweb = fred = re = fred =