changeset 40307:43f0a37bd9ed

py3: byteify extension in test-relink.t
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 14 Oct 2018 13:05:53 -0400
parents da1629c7dda1
children 47084b5ffd80
files tests/test-relink.t
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-relink.t	Sat Oct 13 04:20:22 2018 -0400
+++ b/tests/test-relink.t	Sun Oct 14 13:05:53 2018 -0400
@@ -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))