# HG changeset patch # User Sushil khanchi # Date 2020-09-11 07:34:05 # Node ID c6e332a451d0841f0c0245ba43b796d4f47ac799 # Parent 3d9f1dfc52c2771b87bac7d0e734b4f73643416e py3: fix bytes and str mixup in run-tests Differential Revision: https://phab.mercurial-scm.org/D9009 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -3347,7 +3347,8 @@ class TestRunner(object): else: errpath = b'%s.err' % test['path'] if self.options.outputdir: - errpath = os.path.join(self.options.outputdir, errpath) + self._outputdir = canonpath(_sys2bytes(self.options.outputdir)) + errpath = os.path.join(self._outputdir, errpath) return errpath def _getport(self, count):