tests: always encode session
Differential Revision: https://phab.mercurial-scm.org/D12239
--- a/tests/run-tests.py Sun Feb 20 13:21:30 2022 -0700
+++ b/tests/run-tests.py Sun Feb 20 13:22:12 2022 -0700
@@ -1794,9 +1794,7 @@
script.append(b'echo %s %d $?\n' % (salt, line))
activetrace = []
- session = str(uuid.uuid4())
- if PYTHON3:
- session = session.encode('ascii')
+ session = str(uuid.uuid4()).encode('ascii')
hgcatapult = os.getenv('HGTESTCATAPULTSERVERPIPE') or os.getenv(
'HGCATAPULTSERVERPIPE'
)