tests: unconditionalize bchr
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Feb 2022 13:21:30 -0700
changeset 48860 4cea98b32d95
parent 48859 f928dec9add7
child 48861 7265e5b1d18e
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
tests/run-tests.py
--- 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