From patchwork Sun Feb 11 14:04:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2117: py3: replace file() with open() in test-subrepo-missing.t From: phabricator X-Patchwork-Id: 27558 Message-Id: <0a743fd9d75f325b8d09ebfd573b944f@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sun, 11 Feb 2018 14:04:38 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG1c322658f43e: py3: replace file() with open() in test-subrepo-missing.t (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2117?vs=5380&id=5406 REVISION DETAIL https://phab.mercurial-scm.org/D2117 AFFECTED FILES tests/test-subrepo-missing.t CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel diff --git a/tests/test-subrepo-missing.t b/tests/test-subrepo-missing.t --- a/tests/test-subrepo-missing.t +++ b/tests/test-subrepo-missing.t @@ -14,15 +14,15 @@ ignore blanklines in .hgsubstate - >>> file('.hgsubstate', 'wb').write('\n\n \t \n \n') + >>> open('.hgsubstate', 'wb').write(b'\n\n \t \n \n') $ hg st --subrepos M .hgsubstate $ hg revert -qC .hgsubstate abort more gracefully on .hgsubstate parsing error $ cp .hgsubstate .hgsubstate.old - >>> file('.hgsubstate', 'wb').write('\ninvalid') + >>> open('.hgsubstate', 'wb').write(b'\ninvalid') $ hg st --subrepos --cwd $TESTTMP -R $TESTTMP/repo abort: invalid subrepository revision specifier in 'repo/.hgsubstate' line 2 [255]