# HG changeset patch # User Augie Fackler # Date 2018-03-13 22:13:37 # Node ID bf73012877a4f5a3b7274b5738cc5c0470713ca9 # Parent 3f7bbce8fbaa88c7510d5cdde93e5d088f2353c2 hghave: fix hardlink-whitelisted check on Python 3 Differential Revision: https://phab.mercurial-scm.org/D2846 diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -372,7 +372,7 @@ def has_hardlink(): def has_hardlink_whitelisted(): from mercurial import util try: - fstype = util.getfstype('.') + fstype = util.getfstype(b'.') except OSError: return False return fstype in util._hardlinkfswhitelist