py3: suppress the output on .write() calls in tests/test-hgweb-commands.t
authorPulkit Goyal <pulkit@yandex-team.ru>
Thu, 20 Sep 2018 18:36:00 +0300
changeset 39745 56cb053a71ed
parent 39744 ce4c29705983
child 39746 65b39c556c6d
py3: suppress the output on .write() calls in tests/test-hgweb-commands.t Differential Revision: https://phab.mercurial-scm.org/D4676
tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t	Thu Sep 20 18:35:24 2018 +0300
+++ b/tests/test-hgweb-commands.t	Thu Sep 20 18:36:00 2018 +0300
@@ -26,7 +26,7 @@
   $ hg ci -Ambranch
   $ hg branch unstable
   marked working directory as branch unstable
-  >>> open('msg', 'wb').write(b'branch commit with null character: \0\n')
+  >>> open('msg', 'wb').write(b'branch commit with null character: \0\n') and None
   $ hg ci -l msg
   $ rm msg