# HG changeset patch # User Augie Fackler # Date 1379618968 14400 # Node ID 1b8054b98d6888eca2329ea1a12578c9af2f3a7c # Parent 14c4f605f0fc5944b4ccc0a4b065fa1c97fc702b run-tests: find mercurial path with syntax valid on both py2 and py3 diff -r 14c4f605f0fc -r 1b8054b98d68 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()