changeset 40869:f79659e1e50f

py3: convert filename to bytes in test-hardlinks.t Windows was complaining about passing str to CreateFileA() in win32.py.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 09 Dec 2018 13:33:36 -0500
parents 109a267acc1e
children d3d52cc91e83
files tests/test-hardlinks.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hardlinks.t	Sat Dec 08 23:41:54 2018 -0800
+++ b/tests/test-hardlinks.t	Sun Dec 09 13:33:36 2018 -0500
@@ -3,10 +3,10 @@
   $ cat > nlinks.py <<EOF
   > from __future__ import print_function
   > import sys
-  > from mercurial import util
+  > from mercurial import pycompat, util
   > for f in sorted(sys.stdin.readlines()):
   >     f = f[:-1]
-  >     print(util.nlinks(f), f)
+  >     print(util.nlinks(pycompat.fsencode(f)), f)
   > EOF
 
   $ nlinksdir()