changeset 48860:4cea98b32d95

tests: unconditionalize bchr We could probably just do bytes([x]) everywhere. But this eliminates use of PYTHON3. Differential Revision: https://phab.mercurial-scm.org/D12238
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Feb 2022 13:21:30 -0700
parents f928dec9add7
children 7265e5b1d18e
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:20:33 2022 -0700
+++ b/tests/run-tests.py	Sun Feb 20 13:21:30 2022 -0700
@@ -1655,9 +1655,7 @@
     re.compile(br'.*\$LOCALIP.*$'),
 ]
 
-bchr = chr
-if PYTHON3:
-    bchr = lambda x: bytes([x])
+bchr = lambda x: bytes([x])
 
 WARN_UNDEFINED = 1
 WARN_YES = 2