changeset 48943:70df51a2c2ce

tests: remove Python < 3 check We require Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12349
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 12:44:41 -0700
parents bce8f66d3045
children fe3303436b79
files tests/testlib/sigpipe-remote.py
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/tests/testlib/sigpipe-remote.py	Tue Mar 01 20:53:52 2022 -0800
+++ b/tests/testlib/sigpipe-remote.py	Mon Feb 21 12:44:41 2022 -0700
@@ -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)