diff 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
line wrap: on
line diff
--- 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)