# HG changeset patch # User Matthieu Laneuville # Date 2017-11-03 12:14:57 # Node ID d8c2db6167b3e819a4d05120354e3fedf093a9bf # Parent 7ebf850d3166a64ff33b4b85adb481b533ddbf86 run-tests: endswith takes bytes as argument in python3, not str diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -2356,8 +2356,8 @@ class TestRunner(object): # 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))