Mercurial > hg-stable
changeset 37584:fd0e6678ba0f
py3: suppress the return value of write() in tests/test-subrepo-missing.t
write() on Python 3 returns a value whereas does not return anything on Python 2.
So we need to supress the value.
Differential Revision: https://phab.mercurial-scm.org/D3283
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 12 Apr 2018 08:06:39 -0700 |
parents | 6939b6ac960a |
children | df4fd29c0854 |
files | tests/test-subrepo-missing.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-subrepo-missing.t Thu Apr 12 16:52:32 2018 +0530 +++ b/tests/test-subrepo-missing.t Thu Apr 12 08:06:39 2018 -0700 @@ -14,7 +14,7 @@ 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 @@ -22,7 +22,7 @@ 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]