# HG changeset patch # User Alex Gaynor # Date 2017-08-23 01:08:09 # Node ID 9e8b01d0654f10e074bc0e673217b1cde2bf99a5 # Parent aa81c7a617ddd6f3f9a8b9a75a72476d857ee983 tests: fixed a bytes/unicode confusion in the test runner Differential Revision: https://phab.mercurial-scm.org/D483 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1459,7 +1459,7 @@ class TTest(Test): 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