changeset 19759:1b8054b98d68

run-tests: find mercurial path with syntax valid on both py2 and py3
author Augie Fackler <raf@durin42.com>
date Thu, 19 Sep 2013 15:29:28 -0400
parents 14c4f605f0fc
children 2ac4e89ad769
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()