Patchwork D2845: hghave: fix xdiff check on Python 3

login
register
mail settings
Submitter phabricator
Date March 13, 2018, 10:14 p.m.
Message ID <differential-rev-PHID-DREV-sm7eosqpc4lc6ps2lfq4-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/29461/
State Superseded
Headers show

Comments

phabricator - March 13, 2018, 10:14 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




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

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -714,6 +714,6 @@ 
     try:
         from mercurial import policy
         bdiff = policy.importmod('bdiff')
-        return bdiff.xdiffblocks('', '') == [(0, 0, 0, 0)]
+        return bdiff.xdiffblocks(b'', b'') == [(0, 0, 0, 0)]
     except (ImportError, AttributeError):
         return False