Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 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 | 49d4919d21c2 |
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()