Mercurial > hg-stable
changeset 29871:b05a3a04f046
hghave: add demandimport checking
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 25 Aug 2016 22:30:35 +0000 |
parents | a5ce381a8da0 |
children | 4b50e1f922a0 |
files | tests/hghave.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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__