tests/hghave.py
changeset 29871 b05a3a04f046
parent 29870 a5ce381a8da0
child 29877 80ba176bad62
equal deleted inserted replaced
29870:a5ce381a8da0 29871:b05a3a04f046
   528                      br'dh is a part of debhelper.', ignorestatus=True)
   528                      br'dh is a part of debhelper.', ignorestatus=True)
   529     dh_py2 = matchoutput('dh_python2 --help',
   529     dh_py2 = matchoutput('dh_python2 --help',
   530                          br'other supported Python versions')
   530                          br'other supported Python versions')
   531     return dpkg and dh and dh_py2
   531     return dpkg and dh and dh_py2
   532 
   532 
       
   533 @check("demandimport", "demandimport enabled")
       
   534 def has_demandimport():
       
   535     return os.environ.get('HGDEMANDIMPORT') != 'disable'
       
   536 
   533 @check("absimport", "absolute_import in __future__")
   537 @check("absimport", "absolute_import in __future__")
   534 def has_absimport():
   538 def has_absimport():
   535     import __future__
   539     import __future__
   536     from mercurial import util
   540     from mercurial import util
   537     return util.safehasattr(__future__, "absolute_import")
   541     return util.safehasattr(__future__, "absolute_import")