py3: fix test-hardlinks.t
Differential Revision: https://phab.mercurial-scm.org/D5096
--- 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()