diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -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 diff --git a/tests/test-hardlinks.t b/tests/test-hardlinks.t --- a/tests/test-hardlinks.t +++ b/tests/test-hardlinks.t @@ -19,8 +19,9 @@ $ cat > linkcp.py < 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()