[PATCH 1 of 6 chg-test] run-tests: do not compare bytes with str while ordering tests
Yuya Nishihara
yuya at tcha.org
Fri Feb 12 16:12:34 UTC 2016
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# 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]
More information about the Mercurial-devel
mailing list