tests/hghave.py
branchstable
changeset 1300 bf0c37b32582
parent 1279 9dac69d57f75
child 1301 761641fc16a6
--- a/tests/hghave.py	Thu Oct 03 14:50:47 2013 +0200
+++ b/tests/hghave.py	Sat Oct 05 01:02:22 2013 +0900
@@ -277,6 +277,11 @@
 def has_aix():
     return sys.platform.startswith("aix")
 
+def has_absimport():
+    import __future__
+    from mercurial import util
+    return util.safehasattr(__future__, "absolute_import")
+
 checks = {
     "true": (lambda: True, "yak shaving"),
     "false": (lambda: False, "nail clipper"),
@@ -318,4 +323,5 @@
     "windows": (has_windows, "Windows"),
     "msys": (has_msys, "Windows with MSYS"),
     "aix": (has_aix, "AIX"),
+    "absimport": (has_absimport, "absolute_import in __future__"),
 }