Patchwork D3785: py3: suppress the output of .write() calls in tests/test-revlog-v2.t

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 10:22 a.m.
Message ID <differential-rev-PHID-DREV-4boprlcpuqmy4dcbwbpr-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32246/
State Superseded
Headers show

Comments

phabricator - June 18, 2018, 10:22 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This makes the test pass on Python 3.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3785

AFFECTED FILES
  tests/test-revlog-v2.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-revlog-v2.t b/tests/test-revlog-v2.t
--- a/tests/test-revlog-v2.t
+++ b/tests/test-revlog-v2.t
@@ -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!