tests: update test-hardlinks to pass our import checker
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 15:51:24 -0400
changeset 33976 163b6b7f333c
parent 33975 04518bd58e8a
child 33977 dc95caa1ec0d
tests: update test-hardlinks to pass our import checker
tests/test-hardlinks.t
--- a/tests/test-hardlinks.t	Tue Aug 22 15:51:18 2017 -0400
+++ b/tests/test-hardlinks.t	Tue Aug 22 15:51:24 2017 -0400
@@ -17,8 +17,9 @@
 Some implementations of cp can't create hardlinks (replaces 'cp -al' on Linux):
 
   $ cat > linkcp.py <<EOF
+  > from __future__ import absolute_import
+  > import sys
   > from mercurial import util
-  > import sys
   > util.copyfiles(sys.argv[1], sys.argv[2], hardlink=True)
   > EOF