Mercurial > hg-stable
changeset 25057:cf49cf074ec2
run-tests: os.popen returns a string, make it bytes again
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 13 Apr 2015 18:07:40 -0400 |
parents | e5f6c6ec21b8 |
children | caa2043cc322 |
files | tests/run-tests.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Mon Apr 13 17:24:10 2015 -0400 +++ b/tests/run-tests.py Mon Apr 13 18:07:40 2015 -0400 @@ -2101,6 +2101,8 @@ pipe = os.popen(cmd % PYTHON) try: self._hgpath = pipe.read().strip() + if sys.version_info[0] == 3: + self._hgpath = self._hgpath.encode('utf-8') finally: pipe.close()