diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
index e7e70c033783492cff643d1f3865d931df1d19de_Y29udHJpYi9weXRob24zLXdoaXRlbGlzdA==..be0a5d2d5c78221d4f8104b32b6a2f191ba98a9c_Y29udHJpYi9weXRob24zLXdoaXRlbGlzdA== 100644
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -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
diff --git a/tests/f b/tests/f
index e7e70c033783492cff643d1f3865d931df1d19de_dGVzdHMvZg==..be0a5d2d5c78221d4f8104b32b6a2f191ba98a9c_dGVzdHMvZg== 100755
--- a/tests/f
+++ b/tests/f
@@ -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: