Submitter | phabricator |
---|---|
Date | May 7, 2021, 4:02 a.m. |
Message ID | <differential-rev-PHID-DREV-kajar6xjqi5ietojvst6-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/49011/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -863,7 +863,10 @@ @check("py3exe", "a Python 3.x interpreter is available") def has_python3exe(): - return matchoutput('python3 -V', br'^Python 3.(5|6|7|8|9)') + py = 'python3' + if os.name == 'nt': + py = 'py -3' + return matchoutput('%s -V' % py, br'^Python 3.(5|6|7|8|9)') @check("pure", "running with pure Python code")