D3283: py3: suppress the return value of open() in tests/test-subrepo-missing.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Apr 12 11:08:21 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfd0e6678ba0f: py3: suppress the return value of write() in tests/test-subrepo-missing.t (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3283?vs=8050&id=8062
REVISION DETAIL
https://phab.mercurial-scm.org/D3283
AFFECTED FILES
tests/test-subrepo-missing.t
CHANGE DETAILS
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
- >>> open('.hgsubstate', 'wb').write(b'\n\n \t \n \n')
+ >>> open('.hgsubstate', 'wb').write(b'\n\n \t \n \n') and None
$ hg st --subrepos
M .hgsubstate
$ hg revert -qC .hgsubstate
abort more gracefully on .hgsubstate parsing error
$ cp .hgsubstate .hgsubstate.old
- >>> open('.hgsubstate', 'wb').write(b'\ninvalid')
+ >>> open('.hgsubstate', 'wb').write(b'\ninvalid') and None
$ hg st --subrepos --cwd $TESTTMP -R $TESTTMP/repo
abort: invalid subrepository revision specifier in 'repo/.hgsubstate' line 2
[255]
To: pulkit, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel
mailing list