hghave: fix xdiff check on Python 3
authorAugie Fackler <augie@google.com>
Tue, 13 Mar 2018 18:05:49 -0400
changeset 36941 3f7bbce8fbaa
parent 36940 b0ffcb540357
child 36942 bf73012877a4
hghave: fix xdiff check on Python 3 Differential Revision: https://phab.mercurial-scm.org/D2845
tests/hghave.py
--- a/tests/hghave.py	Tue Mar 13 18:04:37 2018 -0400
+++ b/tests/hghave.py	Tue Mar 13 18:05:49 2018 -0400
@@ -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