Mercurial > hg
comparison tests/hghave.py @ 40263:8cf459d8b111
py3: use py3 as the test tag, dropping the k
Differential Revision: https://phab.mercurial-scm.org/D5079
author | Martijn Pieters <mj@octobus.net> |
---|---|
date | Sat, 13 Oct 2018 10:09:12 +0200 |
parents | aeb2812f304d |
children | fed697fa1734 |
comparison
equal
deleted
inserted
replaced
40262:c8f164061212 | 40263:8cf459d8b111 |
---|---|
639 @check("demandimport", "demandimport enabled") | 639 @check("demandimport", "demandimport enabled") |
640 def has_demandimport(): | 640 def has_demandimport(): |
641 # chg disables demandimport intentionally for performance wins. | 641 # chg disables demandimport intentionally for performance wins. |
642 return ((not has_chg()) and os.environ.get('HGDEMANDIMPORT') != 'disable') | 642 return ((not has_chg()) and os.environ.get('HGDEMANDIMPORT') != 'disable') |
643 | 643 |
644 @check("py3k", "running with Python 3.x") | 644 @check("py3", "running with Python 3.x") |
645 def has_py3k(): | 645 def has_py3(): |
646 return 3 == sys.version_info[0] | 646 return 3 == sys.version_info[0] |
647 | 647 |
648 @check("py3exe", "a Python 3.x interpreter is available") | 648 @check("py3exe", "a Python 3.x interpreter is available") |
649 def has_python3exe(): | 649 def has_python3exe(): |
650 return matchoutput('python3 -V', br'^Python 3.(5|6|7|8|9)') | 650 return matchoutput('python3 -V', br'^Python 3.(5|6|7|8|9)') |