D483: tests: fixed a bytes/unicode confusion in the test runner
alex.gaynor (Alex Gaynor)
phabricator at mercurial-scm.org
Wed Aug 23 01:12:46 UTC 2017
alex.gaynor created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
BRANCH
py3k-test (bookmark) on default (branch)
REVISION DETAIL
https://phab.mercurial-scm.org/D483
AFFECTED FILES
tests/run-tests.py
CHANGE DETAILS
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1460,7 +1460,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
To: alex.gaynor, durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list