# HG changeset patch # User Augie Fackler # Date 1379618968 14400 # Node ID 6e9bfd51bc6feb310d79665e350e017366cac2f1 # Parent aa3c5b7a290eb0898a07398f75fcf31ffdd76092 run-tests: find mercurial path with syntax valid on both py2 and py3 [ original upstream message ] diff -r aa3c5b7a290e -r 6e9bfd51bc6f 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()