From patchwork Sat May 19 19:39:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3602: py3: use print as a function in tests/test-pull.t From: phabricator X-Patchwork-Id: 31723 Message-Id: <20316af4c32213e9ceba7a19e9c101a5@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sat, 19 May 2018 19:39:25 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG549e970397b2: py3: use print as a function in tests/test-pull.t (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3602?vs=8773&id=8807 REVISION DETAIL https://phab.mercurial-scm.org/D3602 AFFECTED FILES tests/test-pull.t CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel diff --git a/tests/test-pull.t b/tests/test-pull.t --- a/tests/test-pull.t +++ b/tests/test-pull.t @@ -109,12 +109,12 @@ It's tricky to make file:// URLs working on every platform with regular shell commands. - $ URL=`$PYTHON -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` + $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` $ hg pull -q "$URL" abort: file:// URLs can only refer to localhost [255] - $ URL=`$PYTHON -c "import os; print 'file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` + $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` $ hg pull -q "$URL" SEC: check for unsafe ssh url