tests/hghave.py
changeset 33528 c384ac3ea147
parent 32901 559db66dead5
child 33697 4d1e79945c2e
equal deleted inserted replaced
33527:6a3e83781c6e 33528:c384ac3ea147
   583 
   583 
   584 @check("demandimport", "demandimport enabled")
   584 @check("demandimport", "demandimport enabled")
   585 def has_demandimport():
   585 def has_demandimport():
   586     return os.environ.get('HGDEMANDIMPORT') != 'disable'
   586     return os.environ.get('HGDEMANDIMPORT') != 'disable'
   587 
   587 
   588 @check("absimport", "absolute_import in __future__")
       
   589 def has_absimport():
       
   590     import __future__
       
   591     from mercurial import util
       
   592     return util.safehasattr(__future__, "absolute_import")
       
   593 
       
   594 @check("py3k", "running with Python 3.x")
   588 @check("py3k", "running with Python 3.x")
   595 def has_py3k():
   589 def has_py3k():
   596     return 3 == sys.version_info[0]
   590     return 3 == sys.version_info[0]
   597 
   591 
   598 @check("py3exe", "a Python 3.x interpreter is available")
   592 @check("py3exe", "a Python 3.x interpreter is available")