Patchwork D11079: sigpipe-remote: display more information about the non-py3 python

login
register
mail settings
Submitter phabricator
Date July 11, 2021, 9:37 p.m.
Message ID <differential-rev-PHID-DREV-d3gvcydpq5kkbktmez23-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49393/
State Superseded
Headers show

Comments

phabricator - July 11, 2021, 9:37 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  If we are running the wrong things, it is useful to know which wrong thing we
  are running.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11079

AFFECTED FILES
  tests/testlib/sigpipe-remote.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/testlib/sigpipe-remote.py b/tests/testlib/sigpipe-remote.py
--- a/tests/testlib/sigpipe-remote.py
+++ b/tests/testlib/sigpipe-remote.py
@@ -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)