##// END OF EJS Templates
hghave: add "py3k" feature to check whether test runs with Python 3.x...
FUJIWARA Katsunori -
r19931:8bbe208c default
parent child Browse files
Show More
@@ -282,6 +282,9 b' def has_absimport():'
282 282 from mercurial import util
283 283 return util.safehasattr(__future__, "absolute_import")
284 284
285 def has_py3k():
286 return 3 == sys.version_info[0]
287
285 288 checks = {
286 289 "true": (lambda: True, "yak shaving"),
287 290 "false": (lambda: False, "nail clipper"),
@@ -324,4 +327,5 b' checks = {'
324 327 "msys": (has_msys, "Windows with MSYS"),
325 328 "aix": (has_aix, "AIX"),
326 329 "absimport": (has_absimport, "absolute_import in __future__"),
330 "py3k": (has_py3k, "running with Python 3.x"),
327 331 }
General Comments 0
You need to be logged in to leave comments. Login now