Patchwork D2509: py3: add b'' prefix in tests/test-revlog-v2.t

login
register
mail settings
Submitter phabricator
Date Feb. 28, 2018, 10:30 p.m.
Message ID <differential-rev-PHID-DREV-a7sy3qneugqczjzmm7hn-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28507/
State Superseded
Headers show

Comments

phabricator - Feb. 28, 2018, 10:30 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  After this, the test works on Python 3. There is some extra return value by
  open().write() I think which needs to be handled.
  
  1. skip-blame because just b'' prefix

REPOSITORY
  rHG Mercurial

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

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
@@ -29,7 +29,7 @@ 
 Unknown flags to revlog are rejected
 
   >>> with open('.hg/store/00changelog.i', 'wb') as fh:
-  ...     fh.write('\x00\x04\xde\xad')
+  ...     fh.write(b'\x00\x04\xde\xad')
 
   $ hg log
   abort: unknown flags (0x04) in version 57005 revlog 00changelog.i!