changeset 40246:be0a5d2d5c78

tests: fix last failure in test-tools.t Differential Revision: https://phab.mercurial-scm.org/D5072
author Augie Fackler <augie@google.com>
date Sat, 13 Oct 2018 06:34:53 -0400
parents e7e70c033783
children 844deb408a5b
files contrib/python3-whitelist tests/f
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Sat Oct 13 12:20:24 2018 +0200
+++ b/contrib/python3-whitelist	Sat Oct 13 06:34:53 2018 -0400
@@ -573,6 +573,7 @@
 test-template-functions.t
 test-template-keywords.t
 test-template-map.t
+test-tools.t
 test-transplant.t
 test-treemanifest.t
 test-ui-color.py
--- a/tests/f	Sat Oct 13 12:20:24 2018 +0200
+++ b/tests/f	Sat Oct 13 06:34:53 2018 -0400
@@ -66,7 +66,7 @@
         elif islink:
             if opts.type:
                 facts.append(b'link')
-            content = os.readlink(f)
+            content = os.readlink(f).encode('utf8')
         elif isstdin:
             content = getattr(sys.stdin, 'buffer', sys.stdin).read()
             if opts.size: