# HG changeset patch # User Matt Harbison # Date 2018-12-09 18:33:36 # Node ID f79659e1e50fdea654b5111285a4f816104d0b07 # Parent 109a267acc1efb3b279b6b244d548a0cd4fe5878 py3: convert filename to bytes in test-hardlinks.t Windows was complaining about passing str to CreateFileA() in win32.py. diff --git a/tests/test-hardlinks.t b/tests/test-hardlinks.t --- a/tests/test-hardlinks.t +++ b/tests/test-hardlinks.t @@ -3,10 +3,10 @@ $ cat > nlinks.py < 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()