tests: fixed a bytes/unicode confusion in the test runner
authorAlex Gaynor <alex.gaynor@gmail.com>
Wed, 23 Aug 2017 01:08:09 +0000
changeset 33871 9e8b01d0654f
parent 33870 aa81c7a617dd
child 33872 5d9890d8ca77
tests: fixed a bytes/unicode confusion in the test runner Differential Revision: https://phab.mercurial-scm.org/D483
tests/run-tests.py
--- a/tests/run-tests.py	Tue Aug 22 10:01:27 2017 -0700
+++ b/tests/run-tests.py	Wed Aug 23 01:08:09 2017 +0000
@@ -1459,7 +1459,7 @@
                         if not el.endswith(b" (?)\n"):
                             m = optline.match(el)
                             if m:
-                                conditions = [c for c in m.group(2).split(' ')]
+                                conditions = [c for c in m.group(2).split(b' ')]
 
                                 if self._hghave(conditions)[0]:
                                     # Don't append as optional line