py3: suppress the value returned by .write() calls
These return values are not present on Python 2.
Differential Revision: https://phab.mercurial-scm.org/D3563
--- a/tests/test-status.t Tue May 15 09:57:58 2018 -0700
+++ b/tests/test-status.t Fri Apr 27 20:55:10 2018 +0530
@@ -465,12 +465,12 @@
$ hg init repo5
$ cd repo5
- >>> open("010a", r"wb").write(b"\1\nfoo")
+ >>> open("010a", r"wb").write(b"\1\nfoo") and None
$ hg ci -q -A -m 'initial checkin'
$ hg status -A
C 010a
- >>> open("010a", r"wb").write(b"\1\nbar")
+ >>> open("010a", r"wb").write(b"\1\nbar") and None
$ hg status -A
M 010a
$ hg ci -q -m 'modify 010a'