run-tests: do not compare bytes with str while ordering tests
authorYuya Nishihara <yuya@tcha.org>
Sun, 07 Feb 2016 15:53:02 +0900
changeset 28096 62ef44273678
parent 28095 7fa139eaebb4
child 28097 81eee5786174
run-tests: do not compare bytes with str while ordering tests It failed on Python 3.
tests/run-tests.py
--- a/tests/run-tests.py	Tue Feb 09 17:51:44 2016 -0800
+++ b/tests/run-tests.py	Sun Feb 07 15:53:02 2016 +0900
@@ -1878,7 +1878,7 @@
                     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]