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