py3: suppress the output of .write() calls in tests/test-revlog-v2.t
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 18 Jun 2018 15:24:17 +0530
changeset 38363 a6426dd3210d
parent 38362 e53879421ecd
child 38364 06c85cbd6824
py3: suppress the output of .write() calls in tests/test-revlog-v2.t This makes the test pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D3785
tests/test-revlog-v2.t
--- a/tests/test-revlog-v2.t	Mon Jun 18 15:23:25 2018 +0530
+++ b/tests/test-revlog-v2.t	Mon Jun 18 15:24:17 2018 +0530
@@ -31,7 +31,7 @@
 Unknown flags to revlog are rejected
 
   >>> with open('.hg/store/00changelog.i', 'wb') as fh:
-  ...     fh.write(b'\x00\x04\xde\xad')
+  ...     fh.write(b'\x00\x04\xde\xad') and None
 
   $ hg log
   abort: unknown flags (0x04) in version 57005 revlog 00changelog.i!