Mercurial > hg
changeset 47637:d0c0d7b98014
sigpipe-remote: display more information about the non-py3 python
If we are running the wrong things, it is useful to know which wrong thing we
are running.
Differential Revision: https://phab.mercurial-scm.org/D11079
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 11 Jul 2021 15:41:18 +0200 |
parents | b2ed9480b34a |
children | 55a715c36e3b |
files | tests/testlib/sigpipe-remote.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/testlib/sigpipe-remote.py Sun Jul 11 15:40:06 2021 +0200 +++ b/tests/testlib/sigpipe-remote.py Sun Jul 11 15:41:18 2021 +0200 @@ -10,7 +10,10 @@ # we cannot use mercurial.testing as long as python2 is not dropped as the test # will only install the mercurial module for python2 in python2 run if sys.version_info[0] < 3: + ver = '.'.join(str(x) for x in sys.version_info) + exe = sys.executable print('SIGPIPE-HELPER: script should run with Python 3', file=sys.stderr) + print('SIGPIPE-HELPER: %s is running %s' % (exe, ver), file=sys.stderr) sys.exit(255) if isinstance(sys.stdout.buffer, io.BufferedWriter):