Mercurial > hg
changeset 39589:4eb0f2452ad7
py3: add b'' to some run-tests.py strings for Windows
Things go seriously off the rails after this, so there may be more that are
missing.
# skip-blame since these are just converting to bytes literals
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 12 Sep 2018 21:32:08 -0400 |
parents | f15a587d2dfc |
children | e471cb2852ea |
files | tests/run-tests.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Wed Sep 12 19:14:28 2018 -0400 +++ b/tests/run-tests.py Wed Sep 12 21:32:08 2018 -0400 @@ -3118,8 +3118,8 @@ def _checktools(self): """Ensure tools required to run tests are present.""" for p in self.REQUIREDTOOLS: - if os.name == 'nt' and not p.endswith('.exe'): - p += '.exe' + if os.name == 'nt' and not p.endswith(b'.exe'): + p += b'.exe' found = self._findprogram(p) if found: vlog("# Found prerequisite", p, "at", found)