run-tests: find mercurial path with syntax valid on both py2 and py3 stable
authorAugie Fackler <raf@durin42.com>
Thu, 19 Sep 2013 15:29:28 -0400
branchstable
changeset 1293 6e9bfd51bc6f
parent 1292 aa3c5b7a290e
child 1294 5a04f94e1da9
child 1295 8e66ac9c0f0e
run-tests: find mercurial path with syntax valid on both py2 and py3 [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Thu Sep 19 15:29:04 2013 -0400
+++ b/tests/run-tests.py	Thu Sep 19 15:29:28 2013 -0400
@@ -1048,7 +1048,7 @@
     if _hgpath is not None:
         return _hgpath
 
-    cmd = '%s -c "import mercurial; print mercurial.__path__[0]"'
+    cmd = '%s -c "import mercurial; print (mercurial.__path__[0])"'
     pipe = os.popen(cmd % PYTHON)
     try:
         _hgpath = pipe.read().strip()