py3: suppress the value returned by .write() calls
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 27 Apr 2018 20:55:10 +0530
changeset 38017 6660b90805c6
parent 38016 81ca0fd348e3
child 38018 a9ffb4a577d0
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
tests/test-status.t
--- 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'