py3: fix test-hardlinks.t
authorMark Thomas <mbthomas@fb.com>
Sun, 14 Oct 2018 09:34:21 +0000
changeset 40332 e0dea186ab6e
parent 40331 ac59de55c8b4
child 40333 d5ff54152636
py3: fix test-hardlinks.t Differential Revision: https://phab.mercurial-scm.org/D5096
contrib/python3-whitelist
tests/test-hardlinks.t
--- a/contrib/python3-whitelist	Fri Sep 14 14:56:13 2018 -0700
+++ b/contrib/python3-whitelist	Sun Oct 14 09:34:21 2018 +0000
@@ -214,6 +214,7 @@
 test-gpg.t
 test-graft.t
 test-grep.t
+test-hardlinks.t
 test-hg-parseurl.py
 test-hghave.t
 test-hgignore.t
--- a/tests/test-hardlinks.t	Fri Sep 14 14:56:13 2018 -0700
+++ b/tests/test-hardlinks.t	Sun Oct 14 09:34:21 2018 +0000
@@ -19,8 +19,9 @@
   $ cat > linkcp.py <<EOF
   > from __future__ import absolute_import
   > import sys
-  > from mercurial import util
-  > util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True)
+  > from mercurial import pycompat, util
+  > util.copyfiles(pycompat.fsencode(sys.argv[1]),
+  >                pycompat.fsencode(sys.argv[2]), hardlink=True)
   > EOF
 
   $ linkcp()