run-tests: find mercurial path with syntax valid on both py2 and py3
authorAugie Fackler <raf@durin42.com>
Thu, 19 Sep 2013 15:29:28 -0400
changeset 19759 1b8054b98d68
parent 19758 14c4f605f0fc
child 19760 2ac4e89ad769
run-tests: find mercurial path with syntax valid on both py2 and py3
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()