changeset 36542:106e93d16435

py3: silence return value of file.write() in test-command-template.t
author Yuya Nishihara <yuya@tcha.org>
date Thu, 01 Mar 2018 15:57:27 -0500
parents c6a7b99f150a
children 3e458c583d2c
files tests/test-command-template.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-command-template.t	Thu Mar 01 18:05:47 2018 -0500
+++ b/tests/test-command-template.t	Thu Mar 01 15:57:27 2018 -0500
@@ -2219,7 +2219,7 @@
   >>> import datetime
   >>> fp = open('a', 'wb')
   >>> n = datetime.datetime.now() + datetime.timedelta(366 * 7)
-  >>> fp.write(b'%d-%d-%d 00:00' % (n.year, n.month, n.day))
+  >>> fp.write(b'%d-%d-%d 00:00' % (n.year, n.month, n.day)) and None
   >>> fp.close()
   $ hg add a
   $ hg commit -m future -d "`cat a`"