[Updated] D12349: tests: remove Python < 3 check
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Mar 8 11:04:56 UTC 2022
Closed by commit rHG70df51a2c2ce: tests: remove Python < 3 check (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12349?vs=32561&id=32600
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12349/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12349
AFFECTED FILES
tests/testlib/sigpipe-remote.py
CHANGE DETAILS
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
@@ -6,14 +6,6 @@
import sys
import time
-# 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):
print('SIGPIPE-HELPER: script need unbuffered output', file=sys.stderr)
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220308/98c56473/attachment-0002.html>
More information about the Mercurial-patches
mailing list