diff tests/hghave.py @ 29871:b05a3a04f046

hghave: add demandimport checking
author timeless <timeless@mozdev.org>
date Thu, 25 Aug 2016 22:30:35 +0000
parents a5ce381a8da0
children 80ba176bad62
line wrap: on
line diff
--- 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__