changeset 36515:351323217fd3

py3: add b'' prefix in tests/test-revlog-v2.t After this, the test works on Python 3. There is some extra return value by open().write() I think which needs to be handled. # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D2509
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 28 Feb 2018 22:14:36 +0530
parents 71d1bbf1617e
children fb9b8004e1b0
files tests/test-revlog-v2.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-revlog-v2.t	Wed Feb 28 22:10:59 2018 +0530
+++ b/tests/test-revlog-v2.t	Wed Feb 28 22:14:36 2018 +0530
@@ -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!