Comments
Patch
@@ -102,6 +102,13 @@
s = p.stdout.read()
return (ignorestatus or not ret) and r.search(s)
+def ensuremercurial():
+ try:
+ from mercurial import __version__
+ except ImportError:
+ testdir = os.path.dirname(os.path.abspath(__file__))
+ sys.path.append(os.path.dirname(testdir))
+
@check("baz", "GNU Arch baz client")
def has_baz():
return matchoutput('baz --version 2>&1', br'baz Bazaar version')
@@ -249,7 +249,7 @@
$TESTTMP/a (glob)
#endif
-#if absimport
+#if demandimport absimport
Examine whether module loading is delayed until actual refering, even
though module is imported with "absolute_import" feature.