From patchwork Tue Oct 16 02:21:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: py3: byteify extension in test-relink.t From: Matt Harbison X-Patchwork-Id: 36023 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 15 Oct 2018 22:21:23 -0400 # HG changeset patch # User Matt Harbison # Date 1539536753 14400 # Sun Oct 14 13:05:53 2018 -0400 # Node ID bb67d54942a16a556cdf257d67ef8f98638728a7 # Parent 0947a5818862b8cbd0689d9bb943baa35361a436 py3: byteify extension in test-relink.t diff --git a/tests/test-relink.t b/tests/test-relink.t --- a/tests/test-relink.t +++ b/tests/test-relink.t @@ -11,9 +11,12 @@ > from __future__ import absolute_import, print_function > import os > import sys - > from mercurial import util + > from mercurial import ( + > pycompat, + > util, + > ) > path1, path2 = sys.argv[1:3] - > if util.samefile(path1, path2): + > if util.samefile(pycompat.fsencode(path1), pycompat.fsencode(path2)): > print('%s == %s' % (path1, path2)) > else: > print('%s != %s' % (path1, path2))