py3: silence return value of file.write() in test-command-template.t
authorYuya Nishihara <yuya@tcha.org>
Thu, 01 Mar 2018 15:57:27 -0500
changeset 36542 106e93d16435
parent 36541 c6a7b99f150a
child 36543 3e458c583d2c
py3: silence return value of file.write() in test-command-template.t
tests/test-command-template.t
--- 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`"