run-tests: os.popen returns a string, make it bytes again
authorAugie Fackler <augie@google.com>
Mon, 13 Apr 2015 18:07:40 -0400
changeset 25057 cf49cf074ec2
parent 25056 e5f6c6ec21b8
child 25058 caa2043cc322
run-tests: os.popen returns a string, make it bytes again
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()