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
--- 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