changeset 34966:d8c2db6167b3

run-tests: endswith takes bytes as argument in python3, not str
author Matthieu Laneuville <matthieu.laneuville@octobus.net>
date Fri, 03 Nov 2017 21:14:57 +0900
parents 7ebf850d3166
children 19ecd39223dc
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sat Oct 21 16:50:57 2017 +0900
+++ b/tests/run-tests.py	Fri Nov 03 21:14:57 2017 +0900
@@ -2356,8 +2356,8 @@
         # assume all tests in same folder for now
         if testdescs:
             pathname = os.path.dirname(testdescs[0]['path'])
-            if pathname and not osenvironb[b'TESTDIR'].endswith('/'):
-                osenvironb[b'TESTDIR'] += '/'
+            if pathname and not osenvironb[b'TESTDIR'].endswith(b'/'):
+                osenvironb[b'TESTDIR'] += b'/'
             osenvironb[b'TESTDIR'] += pathname
         if self.options.outputdir:
             self._outputdir = canonpath(_bytespath(self.options.outputdir))