# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 2018-04-12 15:06:39
# Node ID fd0e6678ba0ff6925b272fef2b97c98011e93cf1
# Parent  6939b6ac960acfa112e3a45b07e87681ac11ae1a

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

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,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 @@ ignore blanklines in .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]