changeset 38059:6660b90805c6

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 27 Apr 2018 20:55:10 +0530
parents 81ca0fd348e3
children a9ffb4a577d0
files tests/test-status.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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'