# HG changeset patch # User Augie Fackler # Date 1428962860 14400 # Node ID cf49cf074ec2b10ab29cd0fef3086a692f3f07e2 # Parent e5f6c6ec21b899426330bc5270a65aac22c9b461 run-tests: os.popen returns a string, make it bytes again diff -r e5f6c6ec21b8 -r cf49cf074ec2 tests/run-tests.py --- 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()