# HG changeset patch # User Augie Fackler # Date 2013-09-19 19:29:28 # Node ID 1b8054b98d6888eca2329ea1a12578c9af2f3a7c # Parent 14c4f605f0fc5944b4ccc0a4b065fa1c97fc702b run-tests: find mercurial path with syntax valid on both py2 and py3 diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1048,7 +1048,7 @@ def _gethgpath(): 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()