From patchwork Fri Feb 12 16:12:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1, of, 6, chg-test] run-tests: do not compare bytes with str while ordering tests From: Yuya Nishihara X-Patchwork-Id: 13138 Message-Id: <8ffb546b8ae698d91f34.1455293554@mimosa> To: mercurial-devel@mercurial-scm.org Date: Sat, 13 Feb 2016 01:12:34 +0900 # HG changeset patch # User Yuya Nishihara # Date 1454827982 -32400 # Sun Feb 07 15:53:02 2016 +0900 # Node ID 8ffb546b8ae698d91f34db6a933c32883f702e66 # Parent 9bebf3fc158929e279654c45a734496fcbf996a8 run-tests: do not compare bytes with str while ordering tests It failed on Python 3. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1881,7 +1881,7 @@ class TestRunner(object): for kw, mul in slow.items(): if kw in f: val *= mul - if f.endswith('.py'): + if f.endswith(b'.py'): val /= 10.0 perf[f] = val / 1000.0 return perf[f]