tests/hghave.py
changeset 36941 3f7bbce8fbaa
parent 36694 1d06407d0ee9
child 36942 bf73012877a4
equal deleted inserted replaced
36940:b0ffcb540357 36941:3f7bbce8fbaa
   712 @check("xdiff", "xdiff algorithm")
   712 @check("xdiff", "xdiff algorithm")
   713 def has_xdiff():
   713 def has_xdiff():
   714     try:
   714     try:
   715         from mercurial import policy
   715         from mercurial import policy
   716         bdiff = policy.importmod('bdiff')
   716         bdiff = policy.importmod('bdiff')
   717         return bdiff.xdiffblocks('', '') == [(0, 0, 0, 0)]
   717         return bdiff.xdiffblocks(b'', b'') == [(0, 0, 0, 0)]
   718     except (ImportError, AttributeError):
   718     except (ImportError, AttributeError):
   719         return False
   719         return False