Patchwork [06,of,10] tests: update test-hardlinks to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:41 p.m.
Message ID <31aa4a34ea4eb6578c7d.1503931319@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23407/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:41 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503431484 14400
#      Tue Aug 22 15:51:24 2017 -0400
# Node ID 31aa4a34ea4eb6578c7dd7bf3628909f415d3b4a
# Parent  d628faa82545e767f56850398b77500a7d576d12
tests: update test-hardlinks to pass our import checker

Patch

diff --git a/tests/test-hardlinks.t b/tests/test-hardlinks.t
--- a/tests/test-hardlinks.t
+++ b/tests/test-hardlinks.t
@@ -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