Mercurial > hg-stable
changeset 48952:7265e5b1d18e
tests: always encode session
Differential Revision: https://phab.mercurial-scm.org/D12239
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 13:22:12 -0700 |
parents | 4cea98b32d95 |
children | 2336e79a119c |
files | tests/run-tests.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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' )