tests/hghave.py
changeset 29867 b05a3a04f046
parent 29866 a5ce381a8da0
child 29873 80ba176bad62
--- a/tests/hghave.py	Thu Aug 25 22:51:39 2016 +0000
+++ b/tests/hghave.py	Thu Aug 25 22:30:35 2016 +0000
@@ -530,6 +530,10 @@
                          br'other supported Python versions')
     return dpkg and dh and dh_py2
 
+@check("demandimport", "demandimport enabled")
+def has_demandimport():
+    return os.environ.get('HGDEMANDIMPORT') != 'disable'
+
 @check("absimport", "absolute_import in __future__")
 def has_absimport():
     import __future__